Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • EventListener
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • DrupalUserToken
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: namespace Mapbender\DrupalIntegrationBundle\Security\Authentication\Token;
 4: 
 5: use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
 6: 
 7: 
 8: class DrupalUserToken extends AbstractToken
 9: {
10:     public function __construct($drupalUser)
11:     {
12:         parent::__construct($drupalUser->getRoles());
13: 
14:         $authenticated = $drupalUser->getId() !== 0;
15:         $this->setAuthenticated($authenticated);
16:         $this->setUser($drupalUser);
17:     }
18: 
19:     public function getCredentials()
20:     {
21:         return '';
22:     }
23: }
24: 
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0