phpBB API Documentation
Class

phpbb\console\application

class application extends Application

Methods

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

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 39
public __construct(string $name, string $version, language $language)

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)

at line 66
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 98
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 109
public doRun(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output