class application extends Application

Properties

protected bool $in_shell
protected config $config
protected language $language

Methods

__construct(string $name, string $version, language $language, config $config)

No description

getDefaultInputDefinition()

{@inheritdoc}

string
getHelp()

Gets the help message.

register_container_commands(service_collection $command_collection)

Register a set of commands from the container

doRun(InputInterface $input, OutputInterface $output)

{@inheritdoc}

register_global_options(InputDefinition $definition)

Register global options

Details

at line 45
__construct(string $name, string $version, language $language, config $config)

No description

Parameters

string $name

The name of the application

string $version

The version of the application

language $language

The user which runs the application (used for translation)

config $config

Config object

at line 56
protected getDefaultInputDefinition()

{@inheritdoc}

at line 73
string getHelp()

Gets the help message.

It's a hack of the default help message to display the --shell option only for the application and not for all the commands.

Return Value

string

A help message.

at line 105
register_container_commands(service_collection $command_collection)

Register a set of commands from the container

Parameters

service_collection $command_collection

The console service collection

at line 124
doRun(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

at line 145
protected register_global_options(InputDefinition $definition)

Register global options

Parameters

InputDefinition $definition

An InputDefinition instance