Commit 258c5b5f authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

respect de la casse nécessaire pour le ViewHelperManager, sinon erreur

parent 3df38eb4
Pipeline #5141 failed with stage
in 9 seconds
......@@ -185,11 +185,11 @@ class Module implements
return;
}
$basePathHelper = $sm->get('viewhelpermanager')->get('BasePath');
$basePathHelper = $sm->get('ViewHelperManager')->get('BasePath');
$url = $basePathHelper() . "/refresh-session";
$js = "$(function() { refreshSession('$url', $period); });";
$sm->get('viewhelpermanager')->get('InlineScript')->offsetSetScript(1001,$js);
$sm->get('ViewHelperManager')->get('InlineScript')->offsetSetScript(1001,$js);
}
/**
......
......@@ -30,7 +30,7 @@ abstract class AbstractForm extends Form implements ServiceLocatorAwareInterface
*/
protected function getUrl($name = null, $params = [], $options = [], $reuseMatchedParams = false)
{
$url = $this->serviceLocator->get('viewhelpermanager')->get('url');
$url = $this->serviceLocator->get('ViewHelperManager')->get('url');
/* @var $url \Zend\View\Helper\Url */
return $url->__invoke($name, $params, $options, $reuseMatchedParams);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment