merged branch kriswallsmith/console-visibility (PR #4526)
Commits -------d13dce0
[Console] reduced visibility to protected Discussion ---------- [Console] reduced visibility to protected This is an internal method and should be cast as such. --------------------------------------------------------------------------- by travisbot at 2012-06-08T21:27:13Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1571579) (mergedd13dce06
intob84b46ba
).
This commit is contained in:
commit
3bb7dc0bfa
@ -28,7 +28,7 @@ class NullOutput extends Output
|
|||||||
* @param string $message A message to write to the output
|
* @param string $message A message to write to the output
|
||||||
* @param Boolean $newline Whether to add a newline or not
|
* @param Boolean $newline Whether to add a newline or not
|
||||||
*/
|
*/
|
||||||
public function doWrite($message, $newline)
|
protected function doWrite($message, $newline)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -176,5 +176,5 @@ abstract class Output implements OutputInterface
|
|||||||
* @param string $message A message to write to the output
|
* @param string $message A message to write to the output
|
||||||
* @param Boolean $newline Whether to add a newline or not
|
* @param Boolean $newline Whether to add a newline or not
|
||||||
*/
|
*/
|
||||||
abstract public function doWrite($message, $newline);
|
abstract protected function doWrite($message, $newline);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ class StreamOutput extends Output
|
|||||||
*
|
*
|
||||||
* @throws \RuntimeException When unable to write output (should never happen)
|
* @throws \RuntimeException When unable to write output (should never happen)
|
||||||
*/
|
*/
|
||||||
public function doWrite($message, $newline)
|
protected function doWrite($message, $newline)
|
||||||
{
|
{
|
||||||
if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
|
if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
|
@ -94,7 +94,7 @@ class TestOutput extends Output
|
|||||||
$this->output = '';
|
$this->output = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doWrite($message, $newline)
|
protected function doWrite($message, $newline)
|
||||||
{
|
{
|
||||||
$this->output .= $message.($newline ? "\n" : '');
|
$this->output .= $message.($newline ? "\n" : '');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user