From 9751afc6c57d3022e058a9a7c505ff237afbbcda Mon Sep 17 00:00:00 2001 From: Eddie Lau <kahlau@ebay.com> Date: Mon, 27 Apr 2015 10:02:23 -0500 Subject: [PATCH] MAGETWO-36073: Move dev/tools/Magento/Tools/Di/singletenant_compiler.php - changed class member to local variable --- .../Console/Command/DiCompileCommand.php | 35 ++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php index 966af6726c0..8236627a40c 100644 --- a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php +++ b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php @@ -42,11 +42,6 @@ class DiCompileCommand extends Command */ private $directoryList; - /** - * @var array - */ - private $compiledPathsList; - /** * @var array */ @@ -97,7 +92,7 @@ class DiCompileCommand extends Command $output->writeln('You cannot run this command because the Magento application is not installed.'); return; } - $this->compiledPathsList = [ + $compiledPathsList = [ 'application' => $appCodePath, 'library' => $libraryPath . '/Magento/Framework', 'generated_helpers' => $generationPath @@ -110,31 +105,31 @@ class DiCompileCommand extends Command $operations = [ OperationFactory::REPOSITORY_GENERATOR => [ - 'path' => $this->compiledPathsList['application'], + 'path' => $compiledPathsList['application'], 'filePatterns' => ['di' => '/\/etc\/([a-zA-Z_]*\/di|di)\.xml$/'] ], OperationFactory::APPLICATION_CODE_GENERATOR => [ - $this->compiledPathsList['application'], - $this->compiledPathsList['library'], - $this->compiledPathsList['generated_helpers'], + $compiledPathsList['application'], + $compiledPathsList['library'], + $compiledPathsList['generated_helpers'], ], OperationFactory::INTERCEPTION => [ 'intercepted_paths' => [ - $this->compiledPathsList['application'], - $this->compiledPathsList['library'], - $this->compiledPathsList['generated_helpers'], + $compiledPathsList['application'], + $compiledPathsList['library'], + $compiledPathsList['generated_helpers'], ], - 'path_to_store' => $this->compiledPathsList['generated_helpers'], + 'path_to_store' => $compiledPathsList['generated_helpers'], ], OperationFactory::AREA_CONFIG_GENERATOR => [ - $this->compiledPathsList['application'], - $this->compiledPathsList['library'], - $this->compiledPathsList['generated_helpers'], + $compiledPathsList['application'], + $compiledPathsList['library'], + $compiledPathsList['generated_helpers'], ], OperationFactory::INTERCEPTION_CACHE => [ - $this->compiledPathsList['application'], - $this->compiledPathsList['library'], - $this->compiledPathsList['generated_helpers'], + $compiledPathsList['application'], + $compiledPathsList['library'], + $compiledPathsList['generated_helpers'], ] ]; -- GitLab