PhpBrew\Command\ExtensionCommand\CleanCommand::execute PHP Method

execute() public method

public execute ( $extensionName )
    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');
        }
    }