Plugin manager implementation for controllers
Registers a number of default plugins, and contains an initializer for injecting plugins with the current controller.
Constructor
After invoking parent constructor, add an initializer to inject the attached controller, if any, to the currently requested plugin.
Parameters: | null|ConfigInterface – |
---|
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.
Parameters: |
|
---|---|
Return type: | mixed |
Set controller
Parameters: | DispatchableInterface – |
---|---|
Return type: | PluginManager |
Retrieve controller instance
Return type: | null|DispatchableInterface |
---|