class
Illuminate
/
Console
/
ContainerCommandLoader
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ContainerCommandLoader
Implements
- Symfony\...\CommandLoaderInterface
Properties
protected
$container
Psr\...\ContainerInterface
The container instance.
Default: null
protected
$commandMap
array
A map of command names to classes.
Default: null
Methods
public
__construct ( Psr\...\ContainerInterface $container , array $commandMap ) : void
Create a new command loader instance.
Parameters
- $container Psr\...\ContainerInterface
- $commandMap array
public
get ( string $name ) : Symfony\...\Command
Resolve a command from the container.
Parameters
- $name string
public
has ( string $name ) : bool
Determines if a command exists.
Parameters
- $name string
public
getNames ( ) : string[]
Get the command names.