Add preload/compiled.php to helpers

This commit is contained in:
Barry
2013-03-12 10:51:00 +01:00
parent f1aa8c6232
commit c92eefbc3d
3 changed files with 9 additions and 9 deletions
+2 -3
View File
@@ -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.
@@ -82,12 +82,6 @@ class GeneratorCommand extends Command {
$output = "<?php die('Only to be used as an helper for your IDE');\n";
if(!empty($helpers)){
foreach($helpers as $helper){
$output .= str_replace(array('<?php', '?>'), '', \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('<?php', '?>'), '', \File::get($helper));
}
}
return $output;
}
+1
View File
@@ -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',
),
/*