CommandLoaderInterface
interface CommandLoaderInterface
Methods
| Command | get(string $name) Loads a command. | |
| bool | has(string $name) Checks if a command exists. | |
| string[] | getNames() |
Details
Command get(string $name)
Loads a command.
Parameters
| string | $name |
Return Value
| Command |
Exceptions
| CommandNotFoundException |
bool has(string $name)
Checks if a command exists.
Parameters
| string | $name |
Return Value
| bool |
string[] getNames()
Return Value
| string[] | All registered command names |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Console/CommandLoader/CommandLoaderInterface.html