Пример #1
0
 /**
  * @param mixed $model
  */
 protected function scheduleForUpdateIfSupported($model)
 {
     if ($this->storage->supportModel($model)) {
         $modelHash = spl_object_hash($model);
         if (array_key_exists($modelHash, $this->scheduledForUpdateModels)) {
             return;
         }
         $this->scheduledForUpdateModels[$modelHash] = $model;
     }
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function invalidate(TokenInterface $token)
 {
     $this->tokenStorage->deleteModel($token);
 }