Skip to content

Commit

Permalink
Merge pull request #115 from Saeven/master
Browse files Browse the repository at this point in the history
Inject the service manager here to prevent the latest zend-mvc from throwing deprecation notices
  • Loading branch information
spiffyjr committed Apr 16, 2016
2 parents 0d13b8f + 2ace56b commit f9f18a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZfcTwig/View/HelperPluginManagerFactory.php
Expand Up @@ -28,6 +28,7 @@ public function createService(ServiceLocatorInterface $serviceLocator)

$baseManager = $serviceLocator->get('ViewHelperManager');
$twigManager = new HelperPluginManager(new Config($managerOptions));
$twigManager->setServiceLocator($serviceLocator);
$twigManager->addPeeringServiceManager($baseManager);

foreach ($managerConfigs as $configClass) {
Expand All @@ -51,4 +52,4 @@ public function createService(ServiceLocatorInterface $serviceLocator)

return $twigManager;
}
}
}

0 comments on commit f9f18a4

Please sign in to comment.