/** * Initialize the console command. * * @param InputInterface $input * @param OutputInterface $output */ public function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->extensions = $this->pagekit['config']['extension.core']; $this->visitors = ['razr' => new RazrNodeVisitor($this->pagekit['tmpl.razr']), 'php' => new PhpNodeVisitor($this->pagekit['tmpl.php'])]; $this->xgettext = !defined('PHP_WINDOWS_VERSION_MAJOR') && (bool) exec('which xgettext'); $this->loader = new PoFileLoader(); }
/** * Initialize the console command. * * @param InputInterface $input * @param OutputInterface $output */ public function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->extensions = $this->pagekit['config']['extension.core']; $this->xgettext = !defined('PHP_WINDOWS_VERSION_MAJOR') && (bool) exec('which xgettext'); }