Skip to content
Snippets Groups Projects
Select Git revision
  • 4764f26bbcb72f1dc6a466571f2776a784574326
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

i18next.js

Blame
  • DummyUserSession.php 898 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\AuthBundle\Tests;
    
    use Dbp\Relay\CoreBundle\API\UserSessionInterface;
    
    class DummyUserSession implements UserSessionInterface
    {
        private $jwt;
        private $id;
        private $roles;
    
        public function __construct(?string $id = 'id', array $roles = [])
        {
            $this->id = $id;
            $this->roles = $roles;
        }
    
        public function setSessionToken(?array $jwt): void
        {
            $this->jwt = $jwt;
        }
    
        public function getUserIdentifier(): ?string
        {
            return $this->id;
        }
    
        public function getUserRoles(): array
        {
            return $this->roles;
        }
    
        public function getSessionLoggingId(): ?string
        {
            return 'logging-id';
        }
    
        public function getSessionCacheKey(): ?string
        {
            return 'cache';
        }
    
        public function getSessionTTL(): int
        {
            return 42;
        }
    }