in Zend Framework 2 as I can recall a plugin module A plug-in module B.
If you recall the plugin from the controller, it works everywhere, but I need to call a plugin in another plugin.
How can I do?
in Zend Framework 2 as I can recall a plugin module A plug-in module B.
If you recall the plugin from the controller, it works everywhere, but I need to call a plugin in another plugin.
How can I do?
Try loading the plugin from the Controller Plugin Manager.
PluginB
You basically have to inject PluginA into PluginB. I.e:
Ultimately your Solution would look a little different and you'd do the injection via ServiceManager Factories
You can access controller from inside your plugin: