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',
'format' => 'php',
'meta_filename' => '.phpstorm.meta.php',
/*
|--------------------------------------------------------------------------
| Fluent helpers
+3 -2
View File
@@ -28,7 +28,6 @@ class MetaCommand extends Command
* @var string
*/
protected $name = 'ide-helper:meta';
protected $filename = '.phpstorm.meta.php';
/**
* The console command description.
@@ -138,8 +137,10 @@ class MetaCommand extends Command
*/
protected function getOptions()
{
$filename = $this->config->get('ide-helper.meta_filename');
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),
);
}
}