Allow for configurable meta filename (#553)

This commit is contained in:
Chris Morrell
2017-08-28 13:37:22 +02:00
committed by Barry vd. Heuvel
parent a9ea231679
commit 55c9bfc33b
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -14,6 +14,8 @@ return array(
'filename' => '_ide_helper', 'filename' => '_ide_helper',
'format' => 'php', 'format' => 'php',
'meta_filename' => '.phpstorm.meta.php',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Fluent helpers | Fluent helpers
+3 -2
View File
@@ -28,7 +28,6 @@ class MetaCommand extends Command
* @var string * @var string
*/ */
protected $name = 'ide-helper:meta'; protected $name = 'ide-helper:meta';
protected $filename = '.phpstorm.meta.php';
/** /**
* The console command description. * The console command description.
@@ -138,8 +137,10 @@ class MetaCommand extends Command
*/ */
protected function getOptions() protected function getOptions()
{ {
$filename = $this->config->get('ide-helper.meta_filename');
return array( return array(
array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the meta file', $this->filename), array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the meta file', $filename),
); );
} }
} }