Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • unicaen_authentification
  • bg-php8
  • 5.x
  • 4.x
  • release_4.0.0
  • bootstrap4_migration
  • laminas_migration
  • 7.1.0
  • 7.0.0
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 5.0.1
  • 5.0.0
  • 4.0.1
  • 4.0.0
  • 1.0.0
19 results

schema_postgresql.sql

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