Ojs\ApiBundle\Command\ApiDocsDumpCommand::initialize PHP Method

initialize() protected method

protected initialize ( 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 initialize(InputInterface $input, OutputInterface $output)
    {
        $this->io = new SymfonyStyle($input, $output);
        $this->container = $this->getContainer();
        $this->apiViews = $this->container->get('ojs_api.twig.api_extension')->getApiViews();
        $this->kernel = $this->container->get('kernel');
        $this->application = new Application($this->kernel);
        $this->application->setAutoExit(false);
    }