Skip to content

Commit a2a7267

Browse files
Merge pull request #5 from nhamtphat/master
Update composer.json again, fix errors related to missing config file
2 parents 91b118e + 38bc9e0 commit a2a7267

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ N2W::toWords(15);
207207

208208
## Dành cho nhà phát triển
209209

210-
Nếu như bạn cảm thấy extension còn thiếu sót hoặc sai sót và bạn muốn đóng góp để phát triển chung,
211-
chúng tôi rất hoan nghênh! Hãy tạo các `issue` để đóng góp ý tưởng cho phiên bản kế tiếp
210+
Nếu như bạn cảm thấy extension còn thiếu sót hoặc sai sót và bạn muốn đóng góp để phát triển chung,
211+
chúng tôi rất hoan nghênh! Hãy tạo các `issue` để đóng góp ý tưởng cho phiên bản kế tiếp
212212
hoặc tạo `PR` để đóng góp. Cảm ơn!

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
],
1616
"require": {
1717
"phpviet/number-to-words": "^1.2",
18-
"illuminate/support": "^8.39"
18+
"illuminate/support": "^6.0 || ^7.0 || ^8.0"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "^6.17"
21+
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0"
2222
},
2323
"autoload": {
2424
"files": [

src/ServiceProvider.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace PHPViet\Laravel\NumberToWords;
1010

11-
use Illuminate\Contracts\Support\DeferrableProvider;
1211
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
1312
use PHPViet\NumberToWords\Dictionary;
1413
use PHPViet\NumberToWords\DictionaryInterface;
@@ -18,7 +17,7 @@
1817
* @author Vuong Minh <[email protected]>
1918
* @since 1.0.0
2019
*/
21-
class ServiceProvider extends BaseServiceProvider implements DeferrableProvider
20+
class ServiceProvider extends BaseServiceProvider
2221
{
2322
public $bindings = [
2423
'n2w' => Transformer::class,
@@ -41,9 +40,4 @@ public function register(): void
4140
{
4241
$this->mergeConfigFrom(__DIR__.'/../config/n2w.php', 'n2w');
4342
}
44-
45-
public function provides(): array
46-
{
47-
return ['n2w'];
48-
}
4943
}

0 commit comments

Comments
 (0)