コード例 #1
0
 /**
  * @param string $gssfId
  * @return VerificationResult
  */
 public function verify($gssfId)
 {
     $verification = $this->state->remove('current_verification');
     if (!$verification) {
         return VerificationResult::noSuchProcedure();
     }
     if ($gssfId === $verification['gssfId']) {
         return VerificationResult::verificationSucceeded($verification['procedureId']);
     }
     return VerificationResult::verificationFailed($verification['procedureId']);
 }
コード例 #2
0
ファイル: Session.php プロジェクト: contao/core-bundle
 /**
  * Remove a session variable
  *
  * @param string $strKey The variable name
  */
 public function remove($strKey)
 {
     // Map the referer (see #281)
     if (in_array($strKey, $this->mappedKeys)) {
         $this->session->remove($strKey);
     } else {
         $this->sessionBag->remove($strKey);
     }
 }
コード例 #3
0
ファイル: Session.php プロジェクト: Mozan/core-bundle
 /**
  * Remove a session variable
  *
  * @param string $strKey The variable name
  */
 public function remove($strKey)
 {
     @trigger_error('Using Session::remove() has been deprecated and will no longer work in Contao 5.0. Use the Symfony session via the container instead.', E_USER_DEPRECATED);
     // Map the referer (see #281)
     if ($strKey == 'referer') {
         $this->session->remove('referer');
     } else {
         $this->sessionBag->remove($strKey);
     }
 }