ApiGen\Console\Command\GenerateCommand::execute PHP Method

execute() protected method

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)
    {
        try {
            $options = $this->prepareOptions($input->getOptions());
            $this->scanAndParse($options);
            $this->generate($options);
            return 0;
        } catch (\Exception $e) {
            $output->writeln(sprintf(PHP_EOL . '<error>%s</error>', $e->getMessage()));
            return 1;
        }
    }