Skip to content
Snippets Groups Projects
Commit 497b8f89 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 960ac598
Branches
No related merge requests found
...@@ -98,7 +98,18 @@ class UpgradeCommand extends AbstractSetupCommand ...@@ -98,7 +98,18 @@ class UpgradeCommand extends AbstractSetupCommand
$output->writeln('<info>Please re-run Magento compile command</info>'); $output->writeln('<info>Please re-run Magento compile command</info>');
} }
//TODO: to be removed in scope of MAGETWO-53476 return $this->doSomething($objectManager);
}
/**
* Enables cache if cachestates exists
* TODO: to be removed in scope of MAGETWO-53476
*
* @param \Magento\Framework\ObjectManagerInterface $objectManager
* @return int
*/
private function doSomething($objectManager)
{
$writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory'); $writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory');
$write = $writeFactory->create(BP); $write = $writeFactory->create(BP);
/** @var \Magento\Framework\App\Filesystem\DirectoryList $dirList */ /** @var \Magento\Framework\App\Filesystem\DirectoryList $dirList */
......
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