コード例 #1
0
 /**
  *
  */
 protected function resume()
 {
     if ($this->resumed === true) {
         return;
     }
     $this->authenticationFactory->newResumeService($this->authenticationAdapter)->resume($this->getAuthenticationSession());
     $this->resumed = true;
 }
コード例 #2
0
ファイル: Bowl.php プロジェクト: smichaelsen/php-salad-bowl
 /**
  * @return AuthenticationService
  * @throws \Exception
  */
 protected function getAuthenticationService()
 {
     if (!$this->authenticationService instanceof AuthenticationService) {
         $authConfig = $this->getConfiguration()->get('authentication');
         if (!is_array($authConfig)) {
             throw new \Exception('Authentication configuration missing', 1465583676);
         }
         $authFactory = new AuthFactory($_COOKIE);
         $authAdapter = $authFactory->newPdoAdapter($this->getPdo(), new PasswordVerifier(AuthenticationService::PASSWORD_HASHING_ALGO), $authConfig['columns'], $authConfig['table']);
         $this->authenticationService = new AuthenticationService($authFactory, $authAdapter);
     }
     return $this->authenticationService;
 }