diff --git a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php index 966af6726c08ab1d8a69396b4c6433ce34f54d20..8236627a40caf9180839f9d4d4b259bd381a1656 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'], ] ];