Skip to content
Snippets Groups Projects
Select Git revision
  • 776bf5b04983b624fdb35c9efd6761cd09a5caa6
  • master default protected
  • detached4
  • detached3
  • detached2
  • bsv-next
  • detached
  • php82
  • 6.x
  • 6.4.0
  • 6.3.3
  • 6.3.2
  • 6.3.1
  • 6.3.0
  • 6.2.7
  • 6.2.6
  • 6.2.5
  • 6.2.4
  • 6.2.3
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.1.3
  • 6.1.2
  • 6.1.1
  • 6.1.0
  • 6.0.0
27 results

unicaenVue.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Module.php 2.22 KiB
    <?php
    
    namespace UnicaenAuth;
    
    use Laminas\EventManager\EventInterface;
    use Laminas\ModuleManager\Feature\AutoloaderProviderInterface;
    use Laminas\ModuleManager\Feature\ConfigProviderInterface;
    use Laminas\ModuleManager\Feature\ServiceProviderInterface;
    use ZfcUser\Form\Login;
    use ZfcUser\Form\LoginFilter;
    
    /**
     * Point d'entrée du module d'authentification Unicaen.
     *
     * @author Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr>
     */
    class Module implements AutoloaderProviderInterface, ConfigProviderInterface, ServiceProviderInterface
    {
        /**
         * @return array
         * @see ConfigProviderInterface
         */
        public function getConfig()
        {
            return include __DIR__ . '/config/module.config.php';
        }
    
        /**
         * @return array
         * @see AutoloaderProviderInterface
         */
        public function getAutoloaderConfig()
        {
            return [
                'Laminas\Loader\StandardAutoloader' => [
                    'namespaces' => [
                        __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                    ],
                ],
            ];
        }
    
        /**
         * This method is called once the MVC bootstrapping is complete,
         * after the "loadModule.post" event, once $application->bootstrap() is called.
         *
         * @param EventInterface $e
         *
         * @see BootstrapListenerInterface
         */
        public function onBootstrap(EventInterface $e)
        {
    
        }
    
        /**
         * @return array
         * @see ServiceProviderInterface
         */
        public function getServiceConfig()
        {
            return [
                //========== repris du module zf-commons/zfc-user-doctrine-orm abandonné =========
                'aliases' => array(
                    'zfcuser_doctrine_em' => 'Doctrine\ORM\EntityManager',
                ),
                //===========================================
    
    
                'factories' => [
                    //========== repris du module zf-commons/zfc-user-doctrine-orm abandonné =========
                    'zfcuser_module_options' => function ($sm) {
                        $config = $sm->get('Configuration');
                        return new Options\ModuleOptions(isset($config['zfcuser']) ? $config['zfcuser'] : array());
                    },
                    //===========================================
    
                ],
            ];
        }
    }