/**
  * @return IIdentity|NULL
  */
 public function getIdentity()
 {
     $identity = $this->innerUserStorage->getIdentity();
     if (!$identity || !$this->identityInitializer) {
         return $identity;
     }
     if (!isset($this->initializedIdentities[$hash = spl_object_hash($identity)])) {
         $this->initializedIdentities[$hash] = $this->identityInitializer->initialize($identity);
     }
     return $this->initializedIdentities[$hash];
 }
Exemple #2
0
 /**
  * @return IIdentity
  */
 public function getExpiredIdentity()
 {
     return $this->storage->getIdentity();
 }