zendframework/zf2 — pull request #3085 by weierophinney (2013-02-13 22:51:06+00:00)
Title: create controller via Zend\Mvc\Controller\ControllerManager

when create controller via Zend\Mvc\Controller\ControllerManager,
ControllerManager injecting into public PluginManager new controller instance.
If I have another controller (early createt), and try to use plugin, such as params() - this plugin is linked to second controller, and not work correctly.

workarround :

class AbstractActionController extends \Zend\Mvc\Controller\AbstractActionController {
public function getPluginManager() {
return parent::getPluginManager()->setController($this);
}
}