mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Add preload/compiled.php to helpers
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
### Complete phpDocs, directly from the source
|
### 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.
|
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.
|
The file has been tested in Netbeans 7.3 and PHPStorm 6.
|
||||||
|
|
||||||
### Automatic phpDoc generation for Laravel Facades
|
### 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',
|
'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.
|
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";
|
$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){
|
foreach($aliases as $alias => $className){
|
||||||
|
|
||||||
$d->analyze($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;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ return array(
|
|||||||
|
|
||||||
'helper_files' => array(
|
'helper_files' => array(
|
||||||
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
|
base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
|
||||||
|
base_path().'/vendor/laravel/framework/preload/compiled.php',
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user