protected function loadTemplatingEngine() { if (!$this->isLoaded) { parent::loadTemplatingEngine(); // load styles foreach ($this->theme->getCliStyles() as $key => $item) { if (is_array($item)) { $style = new OutputFormatterStyle($item[0], $item[1]); } else { $style = new OutputFormatterStyle($item); } $this->console->getFormatter()->setStyle($key, $style); } } }
/** * @return OutputFormatterInterface */ public function getFormatter() { return $this->output->getFormatter(); }