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)
{
$loader = $input->getArgument('loader');
$path = stream_resolve_include_path($loader);
if (!is_readable($path)) {
throw new \InvalidArgumentException("Invalid loader path: {$loader}");
}
include_once $path;
if (!class_exists(AspectKernel::class, false)) {
$message = "Kernel was not initialized yet, please configure it in the {$path}";
throw new \InvalidArgumentException($message);
}
$this->aspectKernel = AspectKernel::getInstance();
}
/** * {@inheritDoc} */ protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $io = new SymfonyStyle($input, $output); $io->title('Advisor debug information'); $advisorId = $input->getOption('advisor'); if (!$advisorId) { $this->showAdvisorsList($io); } else { $this->showAdvisorInformation($io, $advisorId); } }