From 55c9bfc33b0e8fc35a8f7939f1d4afe5debf1eb3 Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Mon, 28 Aug 2017 07:37:22 -0400 Subject: [PATCH] Allow for configurable meta filename (#553) --- config/ide-helper.php | 2 ++ src/Console/MetaCommand.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/ide-helper.php b/config/ide-helper.php index f481d4c..48a06db 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -13,6 +13,8 @@ return array( 'filename' => '_ide_helper', 'format' => 'php', + + 'meta_filename' => '.phpstorm.meta.php', /* |-------------------------------------------------------------------------- diff --git a/src/Console/MetaCommand.php b/src/Console/MetaCommand.php index e2bd73f..9c623a6 100644 --- a/src/Console/MetaCommand.php +++ b/src/Console/MetaCommand.php @@ -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), ); } }