Exemplo n.º 1
0
 /**
  * Get a specific storage from the storage adapter.
  * 
  * @param  string  $storage
  * @return mixed
  */
 public function storage($storage)
 {
     return $this->storage->get($storage);
 }
Exemplo n.º 2
0
 /**
  * Get the storage adapter instance or a specific storage instance.
  * 
  * @return \Dingo\OAuth2\Storage\Adapter
  */
 public function getStorage($storage = null)
 {
     return !is_null($storage) ? $this->storage->get($storage) : $this->storage;
 }