Skip to content
Snippets Groups Projects
Select Git revision
  • 110c343a5cba5aa29dba704a76f67cfff1451da9
  • master default protected
  • cleanup_fixtures
  • add-openvox
  • freebsd-14
  • remove-legacy-top-scope-syntax
  • rel430
  • tests
  • revert-363-augeas-module-cleanup
  • release-4.1.0
  • puppet8
  • relax-dependencies
  • rel400
  • mode
  • puppet7
  • release-3.1.0
  • freebsd13
  • freebsd11
  • stdlib
  • centos
  • fedora
  • v5.1.0
  • v5.0.0
  • v4.5.0
  • v4.4.0
  • v4.3.0
  • v4.2.1
  • v4.2.0
  • v4.1.0
  • v4.0.0
  • v3.1.0
  • v3.0.0
  • v2.0.0
  • 1.12.0
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.0
41 results

files.pp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Module.php 3.24 KiB
    <?php
    
    namespace ZfcUser;
    
    use Laminas\ModuleManager\Feature\ConfigProviderInterface;
    use Laminas\ModuleManager\Feature\ControllerPluginProviderInterface;
    use Laminas\ModuleManager\Feature\ControllerProviderInterface;
    use Laminas\ModuleManager\Feature\ServiceProviderInterface;
    
    class Module implements
        ControllerProviderInterface,
        ControllerPluginProviderInterface,
        ConfigProviderInterface,
        ServiceProviderInterface
    {
        public function getConfig($env = null)
        {
            return include __DIR__ . '/config/module.config.php';
        }
    
        public function getControllerPluginConfig()
        {
            return array(
                'factories' => array(
                    'zfcUserAuthentication' => \ZfcUser\Factory\Controller\Plugin\ZfcUserAuthentication::class,
                ),
            );
        }
    
        public function getControllerConfig()
        {
            return array(
                'factories' => array(
                    'zfcuser' => \ZfcUser\Factory\Controller\UserControllerFactory::class,
                ),
            );
        }
    
        public function getViewHelperConfig()
        {
            return array(
                'factories' => array(
                    'zfcUserDisplayName' => \ZfcUser\Factory\View\Helper\ZfcUserDisplayName::class,
                    'zfcUserIdentity' => \ZfcUser\Factory\View\Helper\ZfcUserIdentity::class,
                    'zfcUserLoginWidget' => \ZfcUser\Factory\View\Helper\ZfcUserLoginWidget::class,
                ),
            );
    
        }
    
        public function getServiceConfig()
        {
            return array(
                'aliases' => array(
                    'zfcuser_zend_db_adapter' => \Laminas\Db\Adapter\Adapter::class,
                ),
                'invokables' => array(
                    'zfcuser_register_form_hydrator' => \Laminas\Hydrator\ClassMethodsHydrator::class,
                ),
                'factories' => array(
                    'zfcuser_redirect_callback' => \ZfcUser\Factory\Controller\RedirectCallbackFactory::class,
                    'zfcuser_module_options' => \ZfcUser\Factory\Options\ModuleOptions::class,
                    'ZfcUser\Authentication\Adapter\AdapterChain' => \ZfcUser\Authentication\Adapter\AdapterChainServiceFactory::class,
    
                    // We alias this one because it's ZfcUser's instance of
                    // Laminas\Authentication\AuthenticationService. We don't want to
                    // hog the FQCN service alias for a Zend\* class.
                    'zfcuser_auth_service' => \ZfcUser\Factory\AuthenticationService::class,
    
                    'zfcuser_user_hydrator' => \ZfcUser\Factory\UserHydrator::class,
                    'zfcuser_user_mapper' => \ZfcUser\Factory\Mapper\User::class,
    
                    'zfcuser_login_form' => \ZfcUser\Factory\Form\Login::class,
                    'zfcuser_register_form' => \ZfcUser\Factory\Form\Register::class,
                    'zfcuser_change_password_form' => \ZfcUser\Factory\Form\ChangePassword::class,
                    'zfcuser_change_email_form' => \ZfcUser\Factory\Form\ChangeEmail::class,
    
                    'ZfcUser\Authentication\Adapter\Db' => \ZfcUser\Factory\Authentication\Adapter\DbFactory::class,
                    'ZfcUser\Authentication\Storage\Db' => \ZfcUser\Factory\Authentication\Storage\DbFactory::class,
    
                    'zfcuser_user_service' => \ZfcUser\Factory\Service\UserFactory::class,
                ),
            );
        }
    }