mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
修正
This commit is contained in:
@@ -17,6 +17,16 @@ use think\console\output\driver\Buffer;
|
||||
use think\console\output\driver\Console;
|
||||
use think\console\output\driver\Nothing;
|
||||
|
||||
/**
|
||||
* Class Output
|
||||
* @package think\console
|
||||
*
|
||||
* @see think\console\output\driver\Console::setDecorated
|
||||
* @method void setDecorated($decorated)
|
||||
*
|
||||
* @see think\console\output\driver\Buffer::fetch
|
||||
* @method string fetch()
|
||||
*/
|
||||
class Output
|
||||
{
|
||||
const VERBOSITY_QUIET = 0;
|
||||
|
||||
@@ -47,7 +47,7 @@ class Formatter
|
||||
|
||||
/**
|
||||
* 设置外观标识
|
||||
* @param bool $decorated 是否美化文职
|
||||
* @param bool $decorated 是否美化文字
|
||||
*/
|
||||
public function setDecorated($decorated)
|
||||
{
|
||||
|
||||
@@ -37,6 +37,11 @@ class Console
|
||||
$this->formatter->setDecorated($decorated);
|
||||
}
|
||||
|
||||
public function setDecorated($decorated)
|
||||
{
|
||||
$this->formatter->setDecorated($decorated);
|
||||
}
|
||||
|
||||
public function write($messages, $newline = false, $type = Output::OUTPUT_NORMAL, $stream = null)
|
||||
{
|
||||
if (Output::VERBOSITY_QUIET === $this->output->getVerbosity()) {
|
||||
|
||||
Reference in New Issue
Block a user