Fully Qualified Name: | Laminas\Mvc\Console\Controller\AbstractConsoleController |
Extends: | AbstractActionController |
Method overloading: return/call plugins
If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
Parameter Name | Type | Description |
---|---|---|
$method | string | |
$params | array |
Returns: mixed
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$request | ||
$response |
Returns:
Returns: \ConsoleAdapter
Get the attached event
Will create a new MvcEvent if none provided.
Returns: \MvcEvent
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Returns: \EventManagerInterface
Transform an "action" token into a method name
Parameter Name | Type | Description |
---|---|---|
$action | string |
Returns: string
Get plugin manager
Returns: \PluginManager
Get request object
Returns: \Request
Get response object
Returns: \Response
Default action if none provided
Returns: \ViewModel
Action called if matched action does not exist.
Returns: \ViewModel
Execute the request
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: mixed
Get plugin instance
Parameter Name | Type | Description |
---|---|---|
$name | string | Name |
$options | null|array | Options |
Returns: mixed
Parameter Name | Type | Description |
---|---|---|
$console | \ConsoleAdapter |
Returns:
Set an event to use during dispatch
By default, will re-cast to MvcEvent if another event type is provided.
Parameter Name | Type | Description |
---|---|---|
$e | \Event |
Returns: void
Set the event manager instance used by this context
Parameter Name | Type | Description |
---|---|---|
$events | \EventManagerInterface |
Returns: \AbstractController
Set plugin manager
Parameter Name | Type | Description |
---|---|---|
$plugins | \PluginManager |
Returns: \AbstractController