On this page
ContainerCommandLoader
class ContainerCommandLoader implements CommandLoaderInterface (View source)
Properties
protected ContainerInterface | $container | The container instance. |
|
protected array | $commandMap | A map of command names to classes. |
Methods
void | __construct(ContainerInterface $container, array $commandMap) Create a new command loader instance. |
|
Command | get(string $name) Resolve a command from the container. |
|
bool | has(string $name) Determines if a command exists. |
|
array | getNames() Get the command names. |
Details
void __construct(ContainerInterface $container, array $commandMap)
Create a new command loader instance.
Command get(string $name)
Resolve a command from the container.
bool has(string $name)
Determines if a command exists.
array getNames()
Get the command names.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Console/ContainerCommandLoader.html