|
|
After updating zf2 recently I ran into an error when using the url
plugin in my controller:
Fatal error: Uncaught exception
'Zend\ServiceManager\Exception\CircularDependencyFoundException' with
message 'Circular dependency for LazyServiceLoader was found for
instance url
I resolved the problem by using the long version:
$router = $this->getEvent()->getRouter();
$url = $router->assemble($params, array('name' => 'route-name'));
instead of :
$url = $this->url()->fromRoute('route-name', $params);
Should I submit as bug?
--
=======================
Ron Dyck
Webbtech
www.webbtech.net
twitter.com/pulpfree
========================
|