9 use Symfony\Component\Console\Input\ArrayInput;
10 use Symfony\Component\Console\Input\InputDefinition;
11 use Symfony\Component\Console\Input\InputArgument;
41 \Symfony\Component\Console\Output\OutputInterface
$output,
59 if ($this->
getName() ===
'setup:cache:enable') {
60 if (!empty($this->params)) {
64 $inputDefinition = [];
65 if ($this->command->getDefinition()->hasArgument(
'command')) {
66 $inputDefinition[] =
new InputArgument(
'command', InputArgument::REQUIRED);
69 $inputDefinition[] =
new InputArgument(
71 InputArgument::REQUIRED
74 if (!empty($inputDefinition)) {
75 $definition =
new InputDefinition($inputDefinition);
76 $this->command->setDefinition($definition);
83 $this->status->toggleUpdateError(
true);
84 throw new \RuntimeException(sprintf(
'Could not complete %s successfully: %s', $this, $e->getMessage()));
output($string, $level=INFO, $label='')
__construct(\Magento\Backend\Console\Command\AbstractCacheSetCommand $command, \Magento\Setup\Model\ObjectManagerProvider $objectManagerProvider, \Symfony\Component\Console\Output\OutputInterface $output, \Magento\Setup\Model\Cron\Status $status, $name, $params=[])