Esempio n. 1
0
 /**
  * @param Authenticator $authService
  * @param SessionManager $sessionManager
  * @throws RuntimeException
  */
 public function __construct(Authenticator $authService, SessionManager $sessionManager)
 {
     if (!$authService->getStorage() instanceof Session) {
         throw new RuntimeException(__CLASS__ . ' requires SessionStorage');
     }
     $this->authService = $authService;
     $this->sessionManager = $sessionManager;
 }