|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony package. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace Symfony\Component\Console\Output; |
|
|
13 |
|
|
|
14 |
/** |
|
|
15 |
* NullOutput suppresses all output. |
|
|
16 |
* |
|
|
17 |
* $output = new NullOutput(); |
|
|
18 |
* |
|
|
19 |
* @author Fabien Potencier <fabien@symfony.com> |
|
|
20 |
* |
|
|
21 |
* @api |
|
|
22 |
*/ |
|
|
23 |
class NullOutput extends Output |
|
|
24 |
{ |
|
|
25 |
/** |
|
|
26 |
* Writes a message to the output. |
|
|
27 |
* |
|
|
28 |
* @param string $message A message to write to the output |
|
|
29 |
* @param Boolean $newline Whether to add a newline or not |
|
|
30 |
*/ |
|
|
31 |
public function doWrite($message, $newline) |
|
|
32 |
{ |
|
|
33 |
} |
|
|
34 |
} |