$installationContext =
$pluginManager->
installPlugin($plugin);
$output->
writeln(sprintf('Plugin %s has been installed successfully.',
$pluginName));
} $activationContext = null;
if ($input->
getOption('activate'
)) { $activationContext =
$pluginManager->
activatePlugin($plugin);
$output->
writeln(sprintf('Plugin %s has been activated successfully.',
$pluginName));
} $this->
clearCachesIfRequested($input,
$output,
$installationContext,
$activationContext);
return 0;
}}