/** * Output error * * @param string $command * @param string $message * @return void */ public function doError($command, $message) { parent::doError($command, $message); $this->writeln("Error: "); $this->writeln("{$command}: {$message}"); }
public function getFrontend() { $frontend = \Magento\Framework\Connect\Frontend::getInstance('CLI'); \Magento\Framework\Connect\Command::setFrontendObject($frontend); return $frontend; }