TWeak meta methods

This commit is contained in:
Barry vd. Heuvel
2015-03-16 14:14:57 +01:00
parent d922d7e7ce
commit b6a5262f3b
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('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) {