Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: no Feature addition: yes BC break: no Symfony2 test pass: yes, but some tests had to be modified Now all error messages goes to stdout, we cannot separate error from normal behaviour, this enables writing to stderr stream, so scripts ran e.g. from cron, can benefit from this well known concept. There are 2 much nicer implememntations, but: 1) First requires to break the `@api` tagged interfaces. 2) Second requires rewrite of `execute` command declatarion all commands in bundles.
- Loading branch information
Showing
4 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Symfony/Component/Console/Output/ConsoleOutputInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Console\Output; | ||
|
||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
/** | ||
* ConsoleOutputInterface is the interface implemented by ConsoleOutput class. | ||
* This adds information about stderr output stream. | ||
* | ||
* @author Dariusz Górecki <darek.krk@gmail.com> | ||
*/ | ||
interface ConsoleOutputInterface extends OutputInterface | ||
{ | ||
/** | ||
* @return OutputInterface | ||
*/ | ||
public function getErrorOutput(); | ||
|
||
public function setErrorOutput(OutputInterface $error); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cab0334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this feature was never released.
Any particular reason for that?
cab0334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be part of the 2.1 release coming in the next couple months. beta1 should be available soon.
cab0334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for the prompt response!