Go\Console\Command\DebugAspectCommand::execute PHP Method

execute() protected method

{@inheritDoc}
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(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);
        $io = new SymfonyStyle($input, $output);
        $container = $this->aspectKernel->getContainer();
        $aspects = [];
        $io->title('Aspect debug information');
        $aspectName = $input->getOption('aspect');
        if (!$aspectName) {
            $io->text('<info>' . get_class($this->aspectKernel) . '</info> has following enabled aspects:');
            $aspects = $container->getByTag('aspect');
        } else {
            $aspect = $container->getAspect($aspectName);
            $aspects[] = $aspect;
        }
        $this->showRegisteredAspectsInfo($io, $aspects);
    }