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)