Commit 27a9a714 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Formation + debug de la console

parent 243f2256
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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
{
@@ -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');