ProgressBar::iterate()
method that simplify updating the progress bar when iteratingQuestion::setAutocompleterCallback()
to provide a callback function
that dynamically generates suggestions as the user types[$process, 'ENV_VAR' => 'value']
to
ProcessHelper::run()
to pass environment variablesProcessHelper::run()
,
pass it the command as an array of its arguments insteadProcessHelper
class finalWrappableOutputFormatterInterface::formatAndWrap()
(implemented in OutputFormatter
)capture_stderr_separately
option to CommandTester::execute()
write
and writeln
methodsOutputFormatter
throws an exception when unknown options are usedQuestionHelper::setInputStream()/getInputStream()
Application::getTerminalWidth()/getTerminalHeight()
and
Application::setTerminalDimensions()/getTerminalDimensions()
ConsoleExceptionEvent
ConsoleEvents::EXCEPTION
SHELL_VERBOSITY
env var to control verbosityCommandLoaderInterface
, FactoryCommandLoader
and PSR-11
ContainerCommandLoader
for commands lazy-loadingCommand::$defaultName/getDefaultName()
, allowing for
commands to be registered at compile time in the application command loader.
Setting the $defaultName
property avoids the need for filling the command
attribute on the console.command
tag when using AddConsoleCommandPass
.ExceptionListener
AddConsoleCommandPass
(originally in FrameworkBundle)Input::getOption()
no longer returns the default value for options
with value optional explicitly passed emptyCommandNotFoundException
through the
console.error
eventSymfonyQuestionHelper::ask
setInputs()
method to CommandTester for ease testing of commands expecting inputssetStream()
and getStream()
methods to Input (implement StreamableInputInterface)ListCommand
Application
ApplicationTester::getDisplay()
and CommandTester::getDisplay()
setCurrent
method'-a|-b|-c'
--process-isolation
switch--
, which disables options parsing after that point
(tokens will be parsed as arguments)