phpBB API Documentation
Class

phpbb\console\application

class application extends Application

Methods

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

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}

Details

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

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 73
public 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
public 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
public doRun(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output