AsCommand
in package
Service tag to autoconfigure commands.
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $description : string|null
- $name : string
Methods
- __construct() : mixed
Properties
$description
public
string|null
$description
= null
$name
public
string
$name
Methods
__construct()
public
__construct(string $name[, string|null $description = null ][, array<string|int, string> $aliases = [] ][, bool $hidden = false ]) : mixed
Parameters
- $name : string
-
The name of the command, used when calling it (i.e. "cache:clear")
- $description : string|null = null
-
The description of the command, displayed with the help page
- $aliases : array<string|int, string> = []
-
The list of aliases of the command. The command will be executed when using one of them (i.e. "cache:clean")
- $hidden : bool = false
-
If true, the command won't be shown when listing all the available commands, but it can still be run as any other command