Skip to content

Commit 497b8f8

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

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

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

101-
//TODO: to be removed in scope of MAGETWO-53476
101+
return $this->doSomething($objectManager);
102+
}
103+
104+
/**
105+
* Enables cache if cachestates exists
106+
* TODO: to be removed in scope of MAGETWO-53476
107+
*
108+
* @param \Magento\Framework\ObjectManagerInterface $objectManager
109+
* @return int
110+
*/
111+
private function doSomething($objectManager)
112+
{
102113
$writeFactory = $objectManager->get('Magento\Framework\Filesystem\Directory\WriteFactory');
103114
$write = $writeFactory->create(BP);
104115
/** @var \Magento\Framework\App\Filesystem\DirectoryList $dirList */

0 commit comments

Comments
 (0)