Example #1
0
 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);
         }
     }
 }
Example #2
0
 /**
  * @return OutputFormatterInterface
  */
 public function getFormatter()
 {
     return $this->output->getFormatter();
 }