ContainerCommandLoader
class ContainerCommandLoader implements CommandLoaderInterface (View source)
Properties
| protected ContainerInterface | $container | The container instance. |
|
| protected Command|string> | $commandMap | A map of command names to classes. |
Methods
__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
__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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.