[Console] the default type value should use the constant in OutputInterface::write
This commit is contained in:
parent
ee0cc40c87
commit
2628d889a7
@ -78,7 +78,7 @@ class NullOutput implements OutputInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function writeln($messages, $type = 0)
|
public function writeln($messages, $type = self::OUTPUT_NORMAL)
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ class NullOutput implements OutputInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function write($messages, $newline = false, $type = 0)
|
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
|
||||||
{
|
{
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ abstract class Output implements OutputInterface
|
|||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
public function writeln($messages, $type = 0)
|
public function writeln($messages, $type = self::OUTPUT_NORMAL)
|
||||||
{
|
{
|
||||||
$this->write($messages, true, $type);
|
$this->write($messages, true, $type);
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ abstract class Output implements OutputInterface
|
|||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
public function write($messages, $newline = false, $type = 0)
|
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
|
||||||
{
|
{
|
||||||
if (self::VERBOSITY_QUIET === $this->verbosity) {
|
if (self::VERBOSITY_QUIET === $this->verbosity) {
|
||||||
return;
|
return;
|
||||||
|
@ -43,7 +43,7 @@ interface OutputInterface
|
|||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
public function write($messages, $newline = false, $type = 0);
|
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes a message to the output and adds a newline at the end.
|
* Writes a message to the output and adds a newline at the end.
|
||||||
@ -53,7 +53,7 @@ interface OutputInterface
|
|||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
public function writeln($messages, $type = 0);
|
public function writeln($messages, $type = self::OUTPUT_NORMAL);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the verbosity of the output.
|
* Sets the verbosity of the output.
|
||||||
|
Reference in New Issue
Block a user