Newscoop\Tools\Console\Command\LogMaintenanceCommand::execute PHP Method

execute() protected method

See also: Console\Command\Command
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
    {
        $audit = $this->getApplication()->getKernel()->getContainer()->getService('audit.maintenance');
        $audit->flush();
        if ($input->getOption('verbose')) {
            $output->writeln('Log data processed.');
        }
    }
LogMaintenanceCommand