Kdyby\Translation\Console\ExtractCommand::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->translator = $this->getHelper('container')->getByType('Kdyby\\Translation\\Translator');
        $this->writer = $this->getHelper('container')->getByType('Symfony\\Component\\Translation\\Writer\\TranslationWriter');
        $this->extractor = $this->getHelper('container')->getByType('Symfony\\Component\\Translation\\Extractor\\ChainExtractor');
        $this->serviceLocator = $this->getHelper('container')->getContainer();
    }