class Application extends Application (View source)

Methods

__construct(string $name, string $version)

No description

Command|null
add(Command $command)

Override add() method to redirect to addCommand() for Symfony 7.4+ compatibility.

Command|null
addCommand(Command|callable $command)

Compatibility wrapper for add/addCommand methods.

addInitRoboFileCommand(string $roboFile, string $roboClass)

No description

addSelfUpdateCommand(string $repository = null)

Add self update command, do nothing if null is provided

Details

__construct(string $name, string $version)

No description

Parameters

string $name
string $version

Command|null add(Command $command)

Override add() method to redirect to addCommand() for Symfony 7.4+ compatibility.

Parameters

Command $command

Return Value

Command|null

Command|null addCommand(Command|callable $command)

Compatibility wrapper for add/addCommand methods.

Symfony 7.4+ accepts Command|callable, while Symfony 6 only accepts Command. We remove the type hint from the parameter to maintain compatibility.

Parameters

Command|callable $command

Return Value

Command|null

addInitRoboFileCommand(string $roboFile, string $roboClass)

No description

Parameters

string $roboFile
string $roboClass

addSelfUpdateCommand(string $repository = null)

Add self update command, do nothing if null is provided

Parameters

string $repository

GitHub Repository for self update.