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.
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.