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/Tests
Mikkel Paulson caad562c11 [Console] Add callback support to Console\Question autocompleter
In order to enable more dynamic use cases such as word-by-word
autocomplete and path-based autocomplete, update the autocomplete logic
of the Question object and its helper to accept a callback function.
This function is called on each keystroke and should return an array of
possibilities to present to the user.

The original logic only accepted an array, which required
implementations to anticipate in advance all possible input values.

This change is fully backwards-compatible, but reimplements the old
behaviour by initializing a "dumb" callback function that always returns
the same array regardless of input.
2019-04-08 17:48:46 +02:00
..
Command Merge branch '4.2' into short-array-master 2019-01-16 22:53:39 +01:00
CommandLoader switched array() to [] 2019-01-16 10:39:14 +01:00
DependencyInjection fixed CS 2019-01-16 19:35:49 +01:00
Descriptor switched array() to [] 2019-01-16 10:39:14 +01:00
EventListener switched array() to [] 2019-01-16 10:39:14 +01:00
Fixtures fixed CS 2019-01-16 19:35:49 +01:00
Formatter fixed CS 2019-01-16 22:53:45 +01:00
Helper [Console] Add callback support to Console\Question autocompleter 2019-04-08 17:48:46 +02:00
Input Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Logger switched array() to [] 2019-01-16 10:39:14 +01:00
Output fixed CS 2019-01-16 19:35:49 +01:00
Question [Console] Add callback support to Console\Question autocompleter 2019-04-08 17:48:46 +02:00
Style switched array() to [] 2019-01-16 10:39:14 +01:00
Tester Merge branch '3.4' into 4.2 2019-02-19 19:28:05 +01:00
ApplicationTest.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
TerminalTest.php Allow terminal dimensions to be set to 0 (unbounded) 2017-04-11 16:41:42 +01:00