How to inject the plugin method with another plugin in zend framework 3?

92 Views Asked by At

How do we use the plugin method in another plugin in zend framework 3 ?

1

There are 1 best solutions below

0
On
$controller = $this->getController(); // get current controller

$otherPlugin = $controller->otherPlugin(); // get the another plugin obj

$otherPlugin->getOtherPluginMethod(); // now call another plugin method