Ejemplo n.º 1
0
 public function __construct(Nette\Http\Session $sessionHandler, IdentityHash $identityHash, Nette\Http\Request $request, Sinergi\BrowserDetector\Browser $browser)
 {
     parent::__construct($sessionHandler);
     $this->sessionHandler = $sessionHandler;
     $this->browser = $browser;
     $this->identityHash = $identityHash;
     $this->request = $request;
 }
Ejemplo n.º 2
0
 public function __construct(Session $sessionHandler, LoginRepository $loginRepository, UserRepository $userRepository, $checkConnection)
 {
     parent::__construct($sessionHandler);
     $this->session = $sessionHandler;
     $this->loginRepository = $loginRepository;
     $this->userRepository = $userRepository;
     $this->checkConnection = $checkConnection;
 }
Ejemplo n.º 3
0
 function __construct(ObjectRepository $userRepository, Session $sessionHandler)
 {
     parent::__construct($sessionHandler);
     $identity = parent::getIdentity();
     if ($identity !== NULL) {
         $identity = $userRepository->find($identity->getId());
     }
     $this->identity = $identity;
 }
Ejemplo n.º 4
0
 /**
  * @param string $namespace
  * @param Session $session
  * @param IdentityValidatorInterface $identityValidator
  */
 public function __construct($namespace, Session $session, IdentityValidatorInterface $identityValidator = null)
 {
     parent::__construct($session);
     $this->setNamespace($namespace);
     $this->identityValidator = $identityValidator;
 }
Ejemplo n.º 5
0
 public function __construct(Session $sessionHandler, UserRepository $userRepository)
 {
     parent::__construct($sessionHandler);
     $this->userRepository = $userRepository;
 }
Ejemplo n.º 6
0
 public function __construct(Session $sessionHandler, EntityManager $entityManager)
 {
     parent::__construct($sessionHandler);
     $this->entityManager = $entityManager;
 }
Ejemplo n.º 7
0
 public function __construct(Session $sessionHandler, EntityManager $entityManager, IStorage $storage)
 {
     parent::__construct($sessionHandler);
     $this->entityManager = $entityManager;
     $this->cache = new Cache($storage, UserAuthenticator::CACHE_NAMESPACE);
 }
Ejemplo n.º 8
0
 public function __construct(Nette\Http\Session $session, IUsers $users = NULL)
 {
     parent::__construct($session);
     $this->users = $users;
 }