Zend Framework  3.0
Public Member Functions | Protected Member Functions | List of all members
MiddlewareListener Class Reference

Public Member Functions

 attach (EventManagerInterface $events, $priority=1)
 Attach listeners to an event manager.
 
 onDispatch (MvcEvent $event)
 Listen to the "dispatch" event.
 
- Public Member Functions inherited from AbstractListenerAggregate
 detach (EventManagerInterface $events)
 Detach all previously attached listeners.
Parameters
EventManagerInterface$events
Returns
void

 

Protected Member Functions

 marshalMiddlewareNotCallable ($type, $middlewareName, MvcEvent $event, Application $application,\Exception $exception=null)
 Marshal a middleware not callable exception event.
 

Additional Inherited Members

- Protected Attributes inherited from AbstractListenerAggregate
 $listeners = []
 

Member Function Documentation

attach ( EventManagerInterface  $events,
  $priority = 1 
)

Attach listeners to an event manager.

Parameters
EventManagerInterface$events
Returns
void

Implements ListenerAggregateInterface.

marshalMiddlewareNotCallable (   $type,
  $middlewareName,
MvcEvent  $event,
Application  $application,
\Exception  $exception = null 
)
protected

Marshal a middleware not callable exception event.

Parameters
string$type
string$middlewareName
MvcEvent$event
Application$application
\Exception$exception
Returns
mixed
onDispatch ( MvcEvent  $event)

Listen to the "dispatch" event.

Parameters
MvcEvent$event
Returns
mixed