CommandLocator
in package
implements
HandlerLocator
FinalYes
Table of Contents
Interfaces
- HandlerLocator
- Service locator for handler objects
Properties
Methods
- __construct() : mixed
- getHandlerForCommand() : object
- Retrieves the handler for a specified command
Properties
$commands read-only
private
ContainerInterface
$commands
Methods
__construct()
public
__construct(ContainerInterface $commands) : mixed
Parameters
- $commands : ContainerInterface
getHandlerForCommand()
Retrieves the handler for a specified command
public
getHandlerForCommand(mixed $commandName) : object
Parameters
- $commandName : mixed