Skip to content
Snippets Groups Projects
Commit f375681c authored by Maddy Chellathurai's avatar Maddy Chellathurai
Browse files

MAGETWO-53474: [Github] Caches Aren't Enabled by Default on RC1 with Composer...

MAGETWO-53474: [Github] Caches Aren't Enabled by Default on RC1 with Composer when Upgrading via CLI

- CR comments
parent 497b8f89
No related merge requests found
...@@ -98,7 +98,7 @@ class UpgradeCommand extends AbstractSetupCommand ...@@ -98,7 +98,7 @@ class UpgradeCommand extends AbstractSetupCommand
$output->writeln('<info>Please re-run Magento compile command</info>'); $output->writeln('<info>Please re-run Magento compile command</info>');
} }
return $this->doSomething($objectManager); return $this->enableCaches($objectManager, $output);
} }
/** /**
...@@ -106,9 +106,10 @@ class UpgradeCommand extends AbstractSetupCommand ...@@ -106,9 +106,10 @@ class UpgradeCommand extends AbstractSetupCommand
* TODO: to be removed in scope of MAGETWO-53476 * TODO: to be removed in scope of MAGETWO-53476
* *
* @param \Magento\Framework\ObjectManagerInterface $objectManager * @param \Magento\Framework\ObjectManagerInterface $objectManager
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return int * @return int
*/ */
private function doSomething($objectManager) private function enableCaches($objectManager, $output)
{ {
$writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory'); $writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory');
$write = $writeFactory->create(BP); $write = $writeFactory->create(BP);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment