Documentation

HandlerLocator

Service locator for handler objects

This interface is often a wrapper around your frameworks dependency injection container or just maps command names to handler names on disk somehow.

Table of Contents

getHandlerForCommand()  : object
Retrieves the handler for a specified command

Methods

getHandlerForCommand()

Retrieves the handler for a specified command

public getHandlerForCommand(string $commandName) : object
Parameters
$commandName : string
Tags
throws
MissingHandlerException
Return values
object

Search results