d6468a9634
This PR was merged into the 5.2-dev branch. Discussion ---------- [Console] Remove restriction for choices to be strings | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #34789 | License | MIT When using choice, selected answers are forced into strings, preventing us from using complex values such as a class with a custom __toString. This is a problem, as I need the ability to present the user with a list of display strings to choose from, but need the ID associated with that display string in order to do anything useful. Commits ------- |
||
---|---|---|
.. | ||
Command | ||
CommandLoader | ||
DependencyInjection | ||
Descriptor | ||
Event | ||
EventListener | ||
Exception | ||
Formatter | ||
Helper | ||
Input | ||
Logger | ||
Output | ||
Question | ||
Resources/bin | ||
SignalRegistry | ||
Style | ||
Tester | ||
Tests | ||
.gitattributes | ||
.gitignore | ||
Application.php | ||
CHANGELOG.md | ||
Color.php | ||
composer.json | ||
ConsoleEvents.php | ||
Cursor.php | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md | ||
SingleCommandApplication.php | ||
Terminal.php |
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.