Aoe\ClassPathCache\ClearCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectMagento($output);
        if ($this->initMagento()) {
            if (\Mage::helper('aoe_classpathcache')->clearClassPathCache()) {
                $output->writeln('<info>Success</info>');
            } else {
                throw new \Exception('Error while cleaning class path cache. Check system.log for details');
            }
        }
    }