Abstract controller
Convenience methods for pre-built plugins (@see __call):
Dispatch a request
Parameters: |
|
---|---|
Return type: | Response|mixed |
Set the event manager instance used by this context
Parameters: | EventManagerInterface – |
---|---|
Return type: | AbstractController |
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Return type: | EventManagerInterface |
---|
Set an event to use during dispatch
By default, will re-cast to MvcEvent if another event type is provided.
Parameters: | Event – |
---|---|
Return type: | void |
Get the attached event
Will create a new MvcEvent if none provided.
Return type: | MvcEvent |
---|
Set serviceManager instance
Parameters: | ServiceLocatorInterface – |
---|---|
Return type: | void |
Retrieve serviceManager instance
Return type: | ServiceLocatorInterface |
---|
Set plugin manager
Parameters: | PluginManager – |
---|---|
Return type: | AbstractController |
Get plugin instance
Parameters: |
|
---|---|
Return type: | mixed |
Method overloading: return/call plugins
If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
Parameters: |
|
---|---|
Return type: | mixed |