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