#[AsCommand(
name: 'plugin:install',
description: 'Installs a plugin',
)]#[Package('core')]
class PluginInstallCommand extends AbstractPluginLifecycleCommand
{ private const LIFECYCLE_METHOD = 'install';
protected function configure(): void
{ $this->
configureCommand(self::LIFECYCLE_METHOD
);
$this->
addOption('activate', 'a', InputOption::VALUE_NONE, 'Activate plugins after installation.'
) ->
addOption('reinstall', null, InputOption::VALUE_NONE, 'Reinstall the plugins'
);
} /**
* {@inheritdoc}
*
* @throws PluginNotInstalledException
*/
protected function execute(InputInterface
$input, OutputInterface
$output): int
{