[Console] the default type value should use the constant in OutputInterface::write

This commit is contained in:
Tobias Schultze 2013-05-14 18:09:22 +02:00
parent ee0cc40c87
commit 2628d889a7
3 changed files with 6 additions and 6 deletions

View File

@ -78,7 +78,7 @@ class NullOutput implements OutputInterface
/**
* {@inheritdoc}
*/
public function writeln($messages, $type = 0)
public function writeln($messages, $type = self::OUTPUT_NORMAL)
{
// do nothing
}
@ -86,7 +86,7 @@ class NullOutput implements OutputInterface
/**
* {@inheritdoc}
*/
public function write($messages, $newline = false, $type = 0)
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
{
// do nothing
}

View File

@ -128,7 +128,7 @@ abstract class Output implements OutputInterface
*
* @api
*/
public function writeln($messages, $type = 0)
public function writeln($messages, $type = self::OUTPUT_NORMAL)
{
$this->write($messages, true, $type);
}
@ -144,7 +144,7 @@ abstract class Output implements OutputInterface
*
* @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) {
return;

View File

@ -43,7 +43,7 @@ interface OutputInterface
*
* @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.
@ -53,7 +53,7 @@ interface OutputInterface
*
* @api
*/
public function writeln($messages, $type = 0);
public function writeln($messages, $type = self::OUTPUT_NORMAL);
/**
* Sets the verbosity of the output.