Zend\Mvc\Controller\PluginManager::get
Retrieve a registered instance
After the plugin is retrieved from the service locator, inject the controller in the plugin every time it is requested. This is required because a controller can use a plugin and another controller can be dispatched afterwards. If this second controller uses the same plugin as the first controller, the reference to the controller inside the plugin is lost.
Signature
public function get(string
$name,
[mixed
$options = true,
[bool
$usePeeringServiceManagers = true]] )
Parameters
$name
— string$options
— array$usePeeringServiceManagers
— object
Returns
- mixed