class FactoryCommandLoader implements CommandLoaderInterface
A simple command loader using factories to instantiate commands lazily.
__construct(array $factories) | ||
bool | has(string $name) Checks if a command exists. | |
Command | get(string $name) Loads a command. | |
string[] | getNames() |
array | $factories | Indexed by command names |
Checks if a command exists.
string | $name |
bool |
Loads a command.
string | $name |
Command |
CommandNotFoundException |
string[] | All registered command names |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/CommandLoader/FactoryCommandLoader.html