set() public method

Set a value in the data store.
public set ( string $key, mixed $value ) : void
$key string
$value mixed
return void
Example #1
0
 /**
  * Validates any CSRF parameters.
  *
  * @throws CsrfException
  */
 protected function validateCsrf()
 {
     if (empty($this->getInput('state')) || $this->getInput('state') !== $this->store->get('oauth2state')) {
         $this->store->set('oauth2state', null);
         throw new CsrfException('Invalid state');
     }
     return;
 }