You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
422 B
28 lines
422 B
<?php
|
|
|
|
namespace addons\command\library;
|
|
|
|
/**
|
|
* Class Output
|
|
*/
|
|
class Output extends \think\console\Output
|
|
{
|
|
|
|
protected $message = [];
|
|
|
|
public function __construct($driver = 'console')
|
|
{
|
|
parent::__construct($driver);
|
|
}
|
|
|
|
protected function block($style, $message)
|
|
{
|
|
$this->message[] = $message;
|
|
}
|
|
|
|
public function getMessage()
|
|
{
|
|
return $this->message;
|
|
}
|
|
|
|
}
|
|
|