mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Update IdeHelperServiceProvider.php
This commit is contained in:
@@ -54,19 +54,22 @@ class IdeHelperServiceProvider extends ServiceProvider
|
|||||||
$configPath = __DIR__ . '/../config/ide-helper.php';
|
$configPath = __DIR__ . '/../config/ide-helper.php';
|
||||||
$this->mergeConfigFrom($configPath, 'ide-helper');
|
$this->mergeConfigFrom($configPath, 'ide-helper');
|
||||||
|
|
||||||
$this->app->singleton('command.ide-helper.generate',
|
$this->app->singleton(
|
||||||
|
'command.ide-helper.generate',
|
||||||
function ($app) {
|
function ($app) {
|
||||||
return new GeneratorCommand($app['config'], $app['files'], $app['view']);
|
return new GeneratorCommand($app['config'], $app['files'], $app['view']);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->app->singleton('command.ide-helper.models',
|
$this->app->singleton(
|
||||||
|
'command.ide-helper.models',
|
||||||
function ($app) {
|
function ($app) {
|
||||||
return new ModelsCommand($app['files']);
|
return new ModelsCommand($app['files']);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->app->singleton('command.ide-helper.meta',
|
$this->app->singleton(
|
||||||
|
'command.ide-helper.meta',
|
||||||
function ($app) {
|
function ($app) {
|
||||||
return new MetaCommand($app['files'], $app['view']);
|
return new MetaCommand($app['files'], $app['view']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user