Loading module/Formation/Module.php +3 −2 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use Laminas\Mvc\MvcEvent; use Laminas\Stdlib\ArrayUtils; use Laminas\Stdlib\Glob; use Laminas\Config\Factory as ConfigFactory; use UnicaenDbImport\Controller\ConsoleController; class Module { Loading @@ -23,8 +24,8 @@ class Module $sharedEvents->attach(AbstractActionController::class, 'dispatch', function($e) { /** @var $e MvcEvent */ $controller = $e->getTarget(); $type = $controller->getRequest()->getParams()['controller']; if ($type !== 'UnicaenDbImport\Controller\ConsoleController') { $consoleType = ($controller instanceof ConsoleController); if (!$consoleType) { $hostname = $controller->getRequest()->getUri()->getHost(); if (preg_match('/mes-formations.*/', $hostname)) { $controller->layout('layout/layout-formation'); Loading Loading
module/Formation/Module.php +3 −2 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use Laminas\Mvc\MvcEvent; use Laminas\Stdlib\ArrayUtils; use Laminas\Stdlib\Glob; use Laminas\Config\Factory as ConfigFactory; use UnicaenDbImport\Controller\ConsoleController; class Module { Loading @@ -23,8 +24,8 @@ class Module $sharedEvents->attach(AbstractActionController::class, 'dispatch', function($e) { /** @var $e MvcEvent */ $controller = $e->getTarget(); $type = $controller->getRequest()->getParams()['controller']; if ($type !== 'UnicaenDbImport\Controller\ConsoleController') { $consoleType = ($controller instanceof ConsoleController); if (!$consoleType) { $hostname = $controller->getRequest()->getUri()->getHost(); if (preg_match('/mes-formations.*/', $hostname)) { $controller->layout('layout/layout-formation'); Loading