Skip to content

Commit 0dcfb5a

Browse files
committed
revert another breaking change, should fix martinlindhe#45 and martinlindhe#48
1 parent 49bc4c9 commit 0dcfb5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/GeneratorProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class GeneratorProvider extends ServiceProvider
1818
*/
1919
public function boot()
2020
{
21+
$this->app->singleton('vue-i18n.generate', function () {
22+
return new Commands\GenerateInclude;
23+
});
24+
2125
$this->commands(
2226
'vue-i18n.generate'
2327
);
@@ -39,9 +43,6 @@ public function boot()
3943
*/
4044
public function register()
4145
{
42-
$this->app->singleton('vue-i18n.generate', function ($app) {
43-
return new Generator($app['config']['vue-i18n-generator']);
44-
});
4546
}
4647

4748
/**

0 commit comments

Comments
 (0)