diff --git a/Module.php b/Module.php index 185ec54..606687f 100644 --- a/Module.php +++ b/Module.php @@ -42,6 +42,7 @@ use Locale; +use SlmLocale\Locale\Detector; use Zend\EventManager\EventInterface; use Zend\Loader\StandardAutoloader; use Zend\ModuleManager\Feature; @@ -74,7 +75,7 @@ public function onBootstrap(EventInterface $e) $app = $e->getApplication(); $sm = $app->getServiceManager(); - $detector = $sm->get(Locale\Detector::class); + $detector = $sm->get(Detector::class); $result = $detector->detect($app->getRequest(), $app->getResponse()); if ($result instanceof ResponseInterface) {