Tweak meta methods

This commit is contained in:
Barry vd. Heuvel
2015-03-16 14:16:41 +01:00
parent 8c339bd6b0
commit 6ed5367f6b
2 changed files with 28 additions and 21 deletions
+12 -1
View File
@@ -40,6 +40,12 @@ class MetaCommand extends Command {
/** @var \Illuminate\View\Factory */
protected $view;
protected $methods = [
'\Illuminate\Foundation\Application::make',
'\App::make',
'app'
];
/**
*
@@ -73,7 +79,12 @@ class MetaCommand extends Command {
$this->error("Cannot make $abstract: ".$e->getMessage());
}
}
$content = $this->view->make('laravel-ide-helper::meta', ['bindings' => $bindings])->render();
$content = $this->view->make('laravel-ide-helper::meta', [
'bindings' => $bindings,
'methods' => $this->methods,
])->render();
$written = $this->files->put($filename, $content);
if ($written !== false) {