$io->
note(sprintf('Plugin "%s" must be installed. Skipping.',
$plugin->
getName()));
continue;
} if ($plugin->
getActive()) { $io->
note(sprintf('Plugin "%s" is already active. Skipping.',
$plugin->
getName()));
continue;
} $this->pluginLifecycleService->
activatePlugin($plugin,
$context);
++
$activatedPluginCount;
$io->
text(sprintf('Plugin "%s" has been activated successfully.',
$plugin->
getName()));
} if ($activatedPluginCount !== 0
) { $io->
success(sprintf('Activated %d plugin(s).',
$activatedPluginCount));
} $this->
handleClearCacheOption($input,
$io, 'activating'
);