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->em = $this->container->get('doctrine')->getManager();
$this->translator = $this->container->get('translator');
$this->allJournals = $this->em->getRepository('OjsJournalBundle:Journal')->findAll();
$this->langs = $this->container->getParameter('locale_support');
$this->syncDescriptions = $input->getOption('sync-desc');
}