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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
),
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user