Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • release/8.0-perimetres
  • php84
  • detached3
  • 6.x
  • 7.x
  • detached2
  • detached
  • php82
  • 5.x
  • cherry-pick-bf3b5271
  • v5.x-test
  • laminas_migration
  • 7.2.8
  • 7.2.7
  • 7.2.6
  • 7.2.5
  • 7.2.4
  • 7.2.3
  • 7.2.2
  • 7.2.1
  • 7.2.0
  • 7.1.3
  • 7.1.2
  • 7.1.1
  • 7.1.0
  • 7.0.1
  • 7.0.0
  • 6.1.11
  • 6.1.10
  • 6.1.9
  • 6.1.8
  • 6.1.7
33 results

001_tables.sql

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Module.php 1.13 KiB
    <?php
    
    namespace UnicaenAide;
    
    use Laminas\Config\Factory as ConfigFactory;
    use Laminas\Mvc\ModuleRouteListener;
    use Laminas\Mvc\MvcEvent;
    use Laminas\Stdlib\ArrayUtils;
    use Laminas\Stdlib\Glob;
    
    class Module
    {
        public function onBootstrap(MvcEvent $e)
        {
            $e->getApplication()->getServiceManager()->get('translator');
            $eventManager = $e->getApplication()->getEventManager();
            $moduleRouteListener = new ModuleRouteListener();
            $moduleRouteListener->attach($eventManager);
        }
    
        public function getConfig()
        {
            $configInit = [
                __DIR__ . '/config/module.config.php'
            ];
            $configFiles = ArrayUtils::merge(
                $configInit,
                Glob::glob(__DIR__ . '/config/merged/{,*.}{config}.php', Glob::GLOB_BRACE)
            );
    
            return ConfigFactory::fromFiles($configFiles);
        }
    
    
        public function getAutoloaderConfig()
        {
            return array(
                'Laminas\Loader\StandardAutoloader' => array(
                    'namespaces' => array(
                        __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                    ),
                ),
            );
        }
    }