diff --git a/src/Generator.php b/src/Generator.php index b68f81f..e0d90ff 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -60,9 +60,11 @@ class Generator */ public function generate() { + $app = app(); return $this->view->make('laravel-ide-helper::ide-helper') ->with('namespaces', $this->getNamespaces()) ->with('helpers', $this->helpers) + ->with('version', $app::VERSION) ->render(); } diff --git a/src/views/ide-helper.php b/src/views/ide-helper.php index 71c6d12..f783a97 100644 --- a/src/views/ide-helper.php +++ b/src/views/ide-helper.php @@ -2,17 +2,18 @@ /** * An helper file for Laravel 4, to provide autocomplete information to your IDE - * Generated with https://github.com/barryvdh/laravel-ide-helper + * Generated for Laravel on . * * @author Barry vd. Heuvel + * @see https://github.com/barryvdh/laravel-ide-helper */ $aliases): ?> - namespace { - - - + + exit("This file should not be included, only analyzed by your IDE"); + + getClassType() ?> getAlias() ?> getExtends() ? 'extends ' . $alias->getExtends() : '' ?>{