setName('extension:enable')
->setDescription('Enables the specified extension.')
->addArgument(
'extension-name',
InputArgument::REQUIRED,
'Name of the extension'
)
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$name = $input->getArgument('extension-name');
$this->manager->enable($name);
$this->manager->load_extensions();
if ($this->manager->enabled($name))
{
$output->writeln("Successfully enabled extension $name");
return 0;
}
else
{
$output->writeln("Could not enable extension $name");
return 1;
}
}
}