mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Bugfix: Undefined property: Barryvdh\LaravelIdeHelper\Console\MetaCommand::$config (#562)
This commit is contained in:
committed by
Barry vd. Heuvel
parent
fedcb57295
commit
01320a48e3
@@ -42,6 +42,9 @@ class MetaCommand extends Command
|
|||||||
/** @var \Illuminate\Contracts\View\Factory */
|
/** @var \Illuminate\Contracts\View\Factory */
|
||||||
protected $view;
|
protected $view;
|
||||||
|
|
||||||
|
/** @var \Illuminate\Contracts\Config */
|
||||||
|
protected $config;
|
||||||
|
|
||||||
protected $methods = [
|
protected $methods = [
|
||||||
'new \Illuminate\Contracts\Container\Container',
|
'new \Illuminate\Contracts\Container\Container',
|
||||||
'\Illuminate\Contracts\Container\Container::make(0)',
|
'\Illuminate\Contracts\Container\Container::make(0)',
|
||||||
@@ -56,11 +59,13 @@ class MetaCommand extends Command
|
|||||||
*
|
*
|
||||||
* @param \Illuminate\Contracts\Filesystem\Filesystem $files
|
* @param \Illuminate\Contracts\Filesystem\Filesystem $files
|
||||||
* @param \Illuminate\Contracts\View\Factory $view
|
* @param \Illuminate\Contracts\View\Factory $view
|
||||||
|
* @param \Illuminate\Contracts\Config $config
|
||||||
*/
|
*/
|
||||||
public function __construct($files, $view)
|
public function __construct($files, $view, $config)
|
||||||
{
|
{
|
||||||
$this->files = $files;
|
$this->files = $files;
|
||||||
$this->view = $view;
|
$this->view = $view;
|
||||||
|
$this->config = $config;
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class IdeHelperServiceProvider extends ServiceProvider
|
|||||||
$this->app->singleton(
|
$this->app->singleton(
|
||||||
'command.ide-helper.meta',
|
'command.ide-helper.meta',
|
||||||
function ($app) use ($localViewFactory) {
|
function ($app) use ($localViewFactory) {
|
||||||
return new MetaCommand($app['files'], $localViewFactory);
|
return new MetaCommand($app['files'], $localViewFactory, $app['config']);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user