Skip to content
Snippets Groups Projects
Select Git revision
  • b14
  • master default protected
  • ll-workflow
  • alc-scindage-donnees-pj
  • b24
  • FJ_LL_Tbl_Contrat
  • alc-docker-node
  • ll-apiplatform
  • php84
  • ll-rgpd
  • b23
  • alc-filtre-type-intervenant
  • ll-sans-mdb5
  • formules-ancienne-infra
  • ll-formules
  • alc-intervenant-dmep
  • ll-suppr-v_vol-s
  • b20
  • ll-postgresql
  • b23.0.1
  • b22
  • 24.8
  • 24.7
  • 24.6
  • 24.5
  • 24.4
  • 24.3
  • 24.2
  • 24.1
  • 24.0
  • 23.15
  • 24.0-beta19
  • 24.0-beta18
  • 24.0-beta17
  • 24.0-beta16
  • 24.0-beta15
  • 24.0-beta14
  • 24.0-beta13
  • 23.14
  • 24.0-beta12
  • 24.0-beta11
41 results

install.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ZfcUserAuthentication.php 1.67 KiB
    <?php
    
    namespace ZfcUser\Controller\Plugin;
    
    use Laminas\Mvc\Controller\Plugin\AbstractPlugin;
    use Laminas\Authentication\AuthenticationService;
    use Laminas\ServiceManager\ServiceLocatorInterface;
    use ZfcUser\Authentication\Adapter\AdapterChain as AuthAdapter;
    
    class ZfcUserAuthentication extends AbstractPlugin
    {
        /**
         * @var AuthAdapter
         */
        protected $authAdapter;
    
        /**
         * @var AuthenticationService
         */
        protected $authService;
    
        /**
         * @var ServiceLocatorInterface
         */
        protected $serviceLocator;
    
        /**
         * Proxy convenience method
         *
         * @return bool
         */
        public function hasIdentity()
        {
            return $this->getAuthService()->hasIdentity();
        }
    
        /**
         * Proxy convenience method
         *
         * @return mixed
         */
        public function getIdentity()
        {
            return $this->getAuthService()->getIdentity();
        }
    
        /**
         * Get authAdapter.
         *
         * @return ZfcUserAuthentication
         */
        public function getAuthAdapter()
        {
            return $this->authAdapter;
        }
    
        /**
         * Set authAdapter.
         *
         * @param authAdapter $authAdapter
         */
        public function setAuthAdapter(AuthAdapter $authAdapter)
        {
            $this->authAdapter = $authAdapter;
            return $this;
        }
    
        /**
         * Get authService.
         *
         * @return AuthenticationService
         */
        public function getAuthService()
        {
            return $this->authService;
        }
    
        /**
         * Set authService.
         *
         * @param AuthenticationService $authService
         */
        public function setAuthService(AuthenticationService $authService)
        {
            $this->authService = $authService;
            return $this;
        }
    }