Larabros\Elogram\Http\Sessions\DataStoreInterface::get PHP Method

get() public method

Get a value from a data store.
public get ( string $key ) : mixed
$key string
return mixed
    public function get($key);

Usage Example

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;
 }
DataStoreInterface