Application
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
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.
Symfony 7.4+ accepts Command|callable, while Symfony 6 only accepts Command. We remove the type hint from the parameter to maintain compatibility.
addInitRoboFileCommand(string $roboFile, string $roboClass)
No description
addSelfUpdateCommand(string $repository = null)
Add self update command, do nothing if null is provided