Exemple #1
0
 public function invalidate()
 {
     $tokens = array_get(self::TOKEN_KEY, $this->storage, []);
     $time = time();
     foreach ($tokens as $key => $config) {
         $expire = isset($config['expire']) ? $config['expire'] : 0;
         if ($time > $value) {
             unset($tokens[$key]);
         }
     }
     array_set(self::TOKEN_KEY, $tokens, $this->storage);
 }
 /**
  * {@inheritdoc}
  */
 public function addIdentity($domain, Identity $identity)
 {
     $identity->setDomain($domain);
     array_set([self::STORAGE_KEY, $domain], $identity, $this->session);
     $this->observe($identity);
 }
 /**
  * @param mixed $option
  * @param mixed $value
  */
 public function addOption($option, $value)
 {
     array_set($option, $value, $this->options);
 }