Skip to content
Snippets Groups Projects
Select Git revision
  • unicaen_authentification
  • master default protected
  • 4.x
  • 6.2.0
  • 6.1.0
  • 6.0.0
  • 5.0.1
  • 5.0.0
  • 4.0.2
  • 4.0.1
  • 4.0.0
  • 3.0.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
17 results

Module.php

Blame
  • Bertrand GAUTHIER's avatar
    Bertrand Gauthier authored
    [FIX] Module.php : activation redondante du ModuleRouteListener (à faire 1 fois uniquement dans le module Application)
    023ff5e9
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Module.php 843 B
    <?php
    
    namespace UnicaenTest;
    
    use Laminas\Mvc\ModuleRouteListener;
    use Laminas\Mvc\MvcEvent;
    
    class Module
    {
    //    public function onBootstrap(MvcEvent $e)
    //    {
    //        $application = $e->getApplication();
    //        $application->getServiceManager()->get('translator');
    //        $eventManager = $application->getEventManager();
    //        $moduleRouteListener = new ModuleRouteListener();
    //        $moduleRouteListener->attach($eventManager);
    //    }
    
        public function getConfig()
        {
            return include __DIR__ . '/config/module.config.php';
        }
    
        public function getAutoloaderConfig()
        {
            return [
                'Laminas\Loader\StandardAutoloader' => [
                    'namespaces' => [
                        __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                    ],
                ],
            ];
        }
    }