Compare commits

...
2 Commits
Author SHA1 Message Date
Barry vd. Heuvel 692b223e94 5.3 array syntax
Fixes #183
2015-03-16 18:22:03 +01:00
Barry vd. Heuvel f321828778 Update readme 2015-03-16 14:57:14 +01:00
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -21,11 +21,13 @@ It's possible to generate a PhpStorm meta file, to [add support for factory desi
php artisan ide-helper:meta
app('events')->fire();
\App::make('events')->..
\App::make('events')->fire();
/** @var \Illuminate\Foundation\Application $app */
$app->make('events')->fire();
Pre-generated example: https://gist.github.com/barryvdh/bb6ffc5d11e0a75dba67
> Note: This is only available in the `@dev` stability, until a new release is tagged.
> Note: You might need to restart PhpStorm and make sure `.phpstorm.meta.php` is indexed.
### Automatic phpDoc generation for Laravel Facades
+4 -4
View File
@@ -41,12 +41,12 @@ class MetaCommand extends Command {
/** @var \Illuminate\View\Factory */
protected $view;
protected $methods = [
protected $methods = array(
'\Illuminate\Foundation\Application::make',
'\Illuminate\Container\Container::make',
'\App::make',
'app',
];
);
/**
*
@@ -81,10 +81,10 @@ class MetaCommand extends Command {
}
}
$content = $this->view->make('laravel-ide-helper::meta', [
$content = $this->view->make('laravel-ide-helper::meta', array(
'bindings' => $bindings,
'methods' => $this->methods,
])->render();
))->render();
$written = $this->files->put($filename, $content);