Skip to content

Application

The quiote CLI.

new is pre-bootstrap (it scaffolds an app from nothing, so there is no Quiote\Context to build yet); about and routes:list bootstrap an existing app via AbstractAppCommand’s app-dir resolution + Quiote::bootstrap() wiring. telemetry:dashboard now lives in its own package, packages/telemetry-dashboard/, and is only registered when that package (and therefore symfony/tui) is actually installed — a production install without it simply doesn’t offer the command, mirroring how the open-telemetry/* packages are optional everywhere else. Registered eagerly here (not through the generic plugin-command-contribution seam) because bin/quiote builds this Application before any Quiote::bootstrap() call — a plugin-contributed command would only appear once a bootstrap had already run in the same process, which would silently break bin/quiote telemetry:dashboard used standalone.

final class Application extends Application

ExtendsApplication
Since1.0.0
SourceConsole/Application.php

public function __construct(): mixed

Returns mixed

MethodDescription
addContributedCommands(): voidRegister console commands contributed by plugins via PluginRegistrar::command().

public function addContributedCommands(): void

Register console commands contributed by plugins via PluginRegistrar::command().

Idempotent: safe to call again after a bootstrap has populated the registry (each command is only added once). Note the boundary: bin/quiote builds this Application before any bootstrap, so plugin commands appear only once a bootstrap has run in the same process (e.g. a programmatic new Application() after Quiote::bootstrap()).

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
addCommand()ApplicationAdds a command object.
addCommands()ApplicationAdds an array of command objects.
all()ApplicationGets the commands (registered in the given namespace if provided).
areExceptionsCaught()ApplicationGets whether to catch exceptions or not during commands execution.
complete()ApplicationAdds suggestions to $suggestions for the current completion input (e.g.
doRun()ApplicationRuns the current application.
extractNamespace()ApplicationReturns the namespace part of the command name.
find()ApplicationFinds a command by name or alias.
findNamespace()ApplicationFinds a registered namespace by a name or an abbreviation.
get()ApplicationReturns a registered command by name or alias.
getAbbreviations()ApplicationReturns an array of possible abbreviations given a set of names.
getAlarmInterval()ApplicationGets the interval in seconds on which a SIGALRM signal is dispatched.
getArgumentResolver()Application
getDefinition()ApplicationGets the InputDefinition related to this Application.
getDispatcher()Application
getHelp()ApplicationGets the help message.
getHelperSet()ApplicationGet the helper set associated with the command.
getLongVersion()ApplicationReturns the long version of the application.
getName()ApplicationGets the name of the application.
getNamespaces()ApplicationReturns an array of all unique namespaces used by currently registered commands.
getSignalRegistry()Application
getVersion()ApplicationGets the application version.
has()ApplicationReturns true if the command exists, false otherwise.
isAutoExitEnabled()ApplicationGets whether to automatically exit after a command execution or not.
register()ApplicationRegisters a new command.
renderThrowable()Application
reset()Application
run()ApplicationRuns the current application.
setAlarmInterval()ApplicationSets the interval to schedule a SIGALRM signal in seconds.
setArgumentResolver()Application
setAutoExit()ApplicationSets whether to automatically exit after a command execution or not.
setCatchErrors()ApplicationSets whether to catch errors or not during commands execution.
setCatchExceptions()ApplicationSets whether to catch exceptions or not during commands execution.
setCommandLoader()Application
setDefaultCommand()ApplicationSets the default Command name.
setDefinition()Application
setDispatcher()Application
setHelperSet()Application
setName()ApplicationSets the application name.
setSignalsToDispatchEvent()Application
setVersion()ApplicationSets the application version.