Skip to content

Commit f375681

Browse files
committed
MAGETWO-53474: [Github] Caches Aren't Enabled by Default on RC1 with Composer when Upgrading via CLI
- CR comments
1 parent 497b8f8 commit f375681

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,18 @@ protected function execute(InputInterface $input, OutputInterface $output)
9898
$output->writeln('<info>Please re-run Magento compile command</info>');
9999
}
100100

101-
return $this->doSomething($objectManager);
101+
return $this->enableCaches($objectManager, $output);
102102
}
103103

104104
/**
105105
* Enables cache if cachestates exists
106106
* TODO: to be removed in scope of MAGETWO-53476
107107
*
108108
* @param \Magento\Framework\ObjectManagerInterface $objectManager
109+
* @param \Symfony\Component\Console\Output\OutputInterface $output
109110
* @return int
110111
*/
111-
private function doSomething($objectManager)
112+
private function enableCaches($objectManager, $output)
112113
{
113114
$writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory');
114115
$write = $writeFactory->create(BP);

0 commit comments

Comments
 (0)