diff --git a/readme.md b/readme.md index 5ef6773..b30dc76 100644 --- a/readme.md +++ b/readme.md @@ -3,8 +3,6 @@ ### Complete phpDocs, directly from the source Add the _IDE_helper.php to your laravel folder (not in a public folder). The file isn't used by Laravel, but it has to be indexed by your IDE. -You can also add Laravel/framework/preload/compiled.php to your dependencies/libraries to include all real namespaces (Laravel & Symfony), so you can link through to the original implementation. -This way you don't need to index/download your entire vendor folder. The file has been tested in Netbeans 7.3 and PHPStorm 6. ### Automatic phpDoc generation for Laravel Facades @@ -30,7 +28,8 @@ You can just add the Facade and the 'real' class, like the rest of the classes. 'Basset' => 'Basset\Basset', You can choose to include helper files. This is not enabled by default, but you can override this with the --helpers (-H) or --nohelpers (-N) option. -The Illuminate/Support/helpers.php file is already set-up, but you can add your own files in the config file. +The Illuminate/Support/helpers.php and laravel/framework/preload/compiled.php are already set-up, but you can add/remove your own files in the config file. +Using this option, allows you to have more complete code completion without having to include the vendor dir. diff --git a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index bd59aab..fa89973 100644 --- a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -82,12 +82,6 @@ class GeneratorCommand extends Command { $output = "'), '', \File::get($helper)); - } - } - foreach($aliases as $alias => $className){ $d->analyze($className); @@ -104,6 +98,12 @@ class GeneratorCommand extends Command { } + if(!empty($helpers)){ + foreach($helpers as $helper){ + $output .= str_replace(array(''), '', \File::get($helper)); + } + } + return $output; } diff --git a/src/config/config.php b/src/config/config.php index d1c1d0f..924f57f 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -27,6 +27,7 @@ return array( 'helper_files' => array( base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php', + base_path().'/vendor/laravel/framework/preload/compiled.php', ), /*