mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
TWeak meta methods
This commit is contained in:
@@ -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('ide-helper::meta', ['bindings' => $bindings])->render();
|
||||
|
||||
$content = $this->view->make('ide-helper::meta', [
|
||||
'bindings' => $bindings,
|
||||
'methods' => $this->methods,
|
||||
])->render();
|
||||
|
||||
$written = $this->files->put($filename, $content);
|
||||
|
||||
if ($written !== false) {
|
||||
|
||||
Reference in New Issue
Block a user