Add sublime option to the config file

This commit is contained in:
Barry
2013-03-23 15:32:15 +01:00
parent b15e19a301
commit 51a40659d6
3 changed files with 17 additions and 3 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
Add the helper file 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.
* Netbeans 7 and PHPStorm 6 version: https://gist.github.com/barryvdh/5227822
* Netbeans and PHPStorm version: https://gist.github.com/barryvdh/5227822
* SublimeText CodeIntel version: https://gist.github.com/barryvdh/5227814
### Automatic phpDoc generation for Laravel Facades
@@ -25,7 +25,7 @@ If you use SublimeText CodeIntel, the format is a bit different. So add --sublim
php artisan ide-helper:generate -S
You can also publish the config-file to add extra facades (ie. for bundles).
You can also publish the config-file to add extra facades (ie. for bundles) or set defaults for --helpers or --sublime.
php artisan config:publish barryvdh/laravel-ide-helper
@@ -41,7 +41,9 @@ class GeneratorCommand extends Command {
$helpers = array();
}
$content = $this->generateDocs($aliases, $helpers, $this->option('sublime'));
$sublime = $this->option('sublime') || \Config::get('laravel-ide-helper::sublime');
$content = $this->generateDocs($aliases, $helpers, $sublime);
$written = \File::put($filename, $content);
+12
View File
@@ -13,6 +13,18 @@ return array(
'filename' => '_IDE_helper.php',
/*
|--------------------------------------------------------------------------
| Sublime version
|--------------------------------------------------------------------------
|
| Use a different code format, better for SublimeText (instead of Netbeans/phpStorm)
| Can also be used with the --sublime (-S) option.
|
*/
'sublime' => false,
/*
|--------------------------------------------------------------------------
| Helper files to include