Closed mtymek closed 8 years ago
This PR makes updates necessary for this component to work under both Service Manager v2 and v3.
Changes:
UrlHelper
ServerUrlHelper
^2.7.5 || ^3.0.3
Updated extracted factories to detect SMv2 and pull dependencies from main service locator:
if (! method_exists($container, 'configure') && method_exists($container, 'getServiceLocator')) { $container = $container->getServiceLocator(); }
ZendViewRendererFactory
could be merged?
@weierophinney could you please look into merging this? thanks!
Looks like SMv3 compatibility was already added in #22. Closing.
This PR makes updates necessary for this component to work under both Service Manager v2 and v3.
Changes:
UrlHelper
andServerUrlHelper
into separate classes.^2.7.5 || ^3.0.3
.Updated extracted factories to detect SMv2 and pull dependencies from main service locator:
ZendViewRendererFactory
to inject view helpers in a way that is compatible with both SMv2 and SMv3.