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 088270ebbd feature #31626 [Console] allow answer to be trimmed by adding a flag (Simperfit)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] allow answer to be trimmed by adding a flag

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/11603 <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against the master branch.
-->

According to https://github.com/symfony/symfony/issues/23210#issuecomment-495998087 we add a new flag in the `Question` class to be able to not trim the answer.

Commits
-------

8f182d811e [Console] allow answer to be trimmed by adding a flag
2019-07-08 09:51:32 +02:00
..
Command Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CommandLoader [Console] Add a factory command loader for standalone application with lazy-loading needs 2017-07-15 10:43:17 +02:00
DependencyInjection fixed CS 2019-01-16 19:35:49 +01:00
Descriptor Merge branch '3.4' into 4.2 2019-06-05 15:22:46 +02:00
Event Merge branch '3.4' into 4.0 2018-07-26 10:51:09 +02:00
EventListener switched array() to [] 2019-01-16 10:39:14 +01:00
Exception fixed some exception previous type hints 2019-03-30 08:40:00 +01:00
Formatter [Console] Add check for Konsole/Yakuake to disable hyperlinks 2019-06-05 04:08:03 +02:00
Helper feature #31626 [Console] allow answer to be trimmed by adding a flag (Simperfit) 2019-07-08 09:51:32 +02:00
Input Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Logger Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
Output fixed CS 2019-06-13 12:57:15 +02:00
Question [Console] allow answer to be trimmed by adding a flag 2019-06-05 07:34:14 +02:00
Resources/bin Move hiddeninput.exe to Resources/bin 2012-10-16 11:08:11 +02:00
Style [Console] Make "warning" in SymfonyStyle use orange color 2019-01-29 23:35:02 +01:00
Tester Merge branch '3.4' into 4.2 2019-04-01 09:32:59 +02:00
Tests feature #31626 [Console] allow answer to be trimmed by adding a flag (Simperfit) 2019-07-08 09:51:32 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
CHANGELOG.md [Console] allow answer to be trimmed by adding a flag 2019-06-05 07:34:14 +02:00
composer.json Marked several components as incompatible with EventDispatcher 5. 2019-05-30 09:25:19 +02:00
ConsoleEvents.php Merge branch '3.4' 2017-11-05 17:26:21 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Terminal.php switched array() to [] 2019-01-16 10:39:14 +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.