FactoryCommandLoader
    
            
            in package
            
        
    
            
            implements
                            CommandLoaderInterface                    
    
    
A simple command loader using factories to instantiate commands lazily.
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
 - get() : Command
 - Loads a command.
 - getNames() : array<string|int, string>
 - has() : bool
 - Checks if a command exists.
 
Methods
__construct()
    public
                    __construct(array<string|int, callable> $factories) : mixed
    Parameters
- $factories : array<string|int, callable>
 - 
                    
Indexed by command names
 
get()
Loads a command.
    public
                    get(string $name) : Command
    Parameters
- $name : string
 
Return values
CommandgetNames()
    public
                    getNames() : array<string|int, string>
    Return values
array<string|int, string>has()
Checks if a command exists.
    public
                    has(string $name) : bool
    Parameters
- $name : string