Methods

Attach listeners

attach(\Zend\EventManager\EventManagerInterface $events) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

Detach listeners

detach(\Zend\EventManager\EventManagerInterface $events) : void

Inject a template into the view model, if none present

injectTemplate(\Zend\Mvc\MvcEvent $e) : void

Template is derived from the controller found in the route match, and, optionally, the action, if present.

Parameters

Determine the name of the controller

deriveControllerClass(string $controller) : string

Strip the namespace, and the suffix "Controller" if present.

Parameters

$controller

string

Returns

string

deriveControllerSubNamespace()

deriveControllerSubNamespace($namespace) : string

Parameters

$namespace

Returns

string

Determine the top-level namespace of the controller

deriveModuleNamespace(string $controller) : string

Parameters

$controller

string

Returns

string

Inflect a name to a normalized value

inflectName(string $name) : string

Parameters

$name

string

Returns

string

 Properties

 

FilterInterface/inflector used to normalize names for use as template identifiers

$inflector : mixed

 

Listeners we've registered

$listeners : array