public function execute($extensionName)
{
if ($ext = ExtensionFactory::lookup($extensionName)) {
$this->logger->info("Cleaning {$extensionName}...");
$manager = new ExtensionManager($this->logger);
if ($this->options->purge) {
$manager->purgeExtension($ext);
} else {
$manager->cleanExtension($ext);
}
$this->logger->info('Done');
}
}