PHP Class Zend\Mvc\MiddlewareListener

Inheritance: extends Zend\EventManager\AbstractListenerAggregate
Show file Open project: zendframework/zend-mvc

Public Methods

Method Description
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) : void Attach listeners to an event manager
onDispatch ( MvcEvent $event ) : mixed Listen to the "dispatch" event

Protected Methods

Method Description
marshalMiddlewareNotCallable ( string $type, string $middlewareName, MvcEvent $event, Application $application, Exception $exception = null ) : mixed Marshal a middleware not callable exception event

Method Details

attach() public method

Attach listeners to an event manager
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) : void
$events Zend\EventManager\EventManagerInterface
return void

marshalMiddlewareNotCallable() protected method

Marshal a middleware not callable exception event
protected marshalMiddlewareNotCallable ( string $type, string $middlewareName, MvcEvent $event, Application $application, Exception $exception = null ) : mixed
$type string
$middlewareName string
$event MvcEvent
$application Application
$exception Exception
return mixed

onDispatch() public method

Listen to the "dispatch" event
public onDispatch ( MvcEvent $event ) : mixed
$event MvcEvent
return mixed