. * @author niel * @copyright 2014 nZEDb */ namespace App\extensions\console; use Symfony\Component\Console\Output\ConsoleOutput; class Command extends \Illuminate\Console\Command { /** * Command constructor. * * @param array $config */ public function __construct(array $config = array()) { $this->setName('command'); parent::__construct(); $this->output = new ConsoleOutput(); } public function info($text, $verbosity = null) { if ($this->output->isQuiet()) { return; } $this->output->writeln('' . $text . '', $verbosity); } public function primary($text) { if ($this->output->isQuiet()) { return; } $this->output->writeln('' . $text . ''); } public function error($text, $verbosity = null) { if ($this->output->isQuiet()) { return; } $this->output->writeln('' . $text . '', $verbosity); } } ?>