This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console
Fabien Potencier ce60be5729 bug #15794 [Console] default to stderr in the console helpers (alcohol)
This PR was squashed before being merged into the 2.3 branch (closes #15794).

Discussion
----------

[Console] default to stderr in the console helpers

Interactive input/output and informational output such as progress should go to `stderr` if available.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

See #13730 also for previous discussion.

If someone explicitly wants to use `stdout`, they can simply pass `$output->getStream()` instead of `$output` in most use-cases.

Commits
-------

3d4e95e [Console] default to stderr in the console helpers
2016-03-04 10:20:54 +01:00
..
Command Remove InputOption::VALUE_REQUIRED mode from $default parameter description as InputOption::setDefault() throws an exception only when called in InputOption::VALUE_NONE mode. 2016-02-15 20:17:39 +01:00
Descriptor [2.3] Static Code Analysis for Components 2015-12-31 19:24:01 +01:00
Event Docblock fixes 2014-11-30 13:33:44 +00:00
Formatter [Console] Fix escaping of trailing backslashes 2016-02-24 15:09:34 +01:00
Helper bug #15794 [Console] default to stderr in the console helpers (alcohol) 2016-03-04 10:20:54 +01:00
Input Remove InputOption::VALUE_REQUIRED mode from $default parameter description as InputOption::setDefault() throws an exception only when called in InputOption::VALUE_NONE mode. 2016-02-15 20:17:39 +01:00
Output [2.3] Static Code Analysis for Components 2016-01-12 12:31:34 +01:00
Resources/bin Move hiddeninput.exe to Resources/bin 2012-10-16 11:08:11 +02:00
Tester [Console] Make it clear that the second argument is not about command options. 2015-01-19 19:35:05 +00:00
Tests bug #15794 [Console] default to stderr in the console helpers (alcohol) 2016-03-04 10:20:54 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php register commands from kernel when accessing list 2016-01-27 13:20:43 +01:00
CHANGELOG.md Add notes in UPGRADE and CHANGELOG 2013-04-25 12:51:56 +02:00
composer.json added the new Composer exclude-from-classmap option 2015-10-30 12:48:51 -07:00
ConsoleEvents.php Add machine readable events 2014-11-16 18:21:02 +01:00
LICENSE Update copyright year 2016-01-01 23:53:47 -03:00
phpunit.xml.dist Add missing exclusions from phpunit.xml.dist 2015-11-18 09:19:46 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Shell.php use nowdoc instead of heredoc 2015-12-21 17:05:00 +01:00

Console Component

The Console component eases the creation of beautiful and testable command line interfaces.

Resources

Credits

Resources/bin/hiddeninput.exe is a third party binary provided within this component. Find sources and license at https://github.com/Seldaek/hidden-input.