From fea684279c3997733f5d05c709d0b9662d1139b8 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 9 May 2018 14:21:43 -0700 Subject: Make cli locale commands working outside of source tree --- app/Console/LocaleComparatorCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Console/LocaleComparatorCommand.php') diff --git a/app/Console/LocaleComparatorCommand.php b/app/Console/LocaleComparatorCommand.php index fd29d13e..2c6c007d 100644 --- a/app/Console/LocaleComparatorCommand.php +++ b/app/Console/LocaleComparatorCommand.php @@ -21,7 +21,7 @@ class LocaleComparatorCommand extends BaseCommand protected function execute(InputInterface $input, OutputInterface $output) { $strings = array(); - $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('app')); + $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(APP_DIR)); $it->rewind(); while ($it->valid()) { @@ -44,7 +44,7 @@ class LocaleComparatorCommand extends BaseCommand public function compare(array $strings) { - $reference_file = 'app/Locale/'.self::REF_LOCALE.'/translations.php'; + $reference_file = APP_DIR.DIRECTORY_SEPARATOR.'Locale'.DIRECTORY_SEPARATOR.self::REF_LOCALE.DIRECTORY_SEPARATOR.'translations.php'; $reference = include $reference_file; echo str_repeat('#', 70).PHP_EOL; -- cgit v1.2.3