Exemplo n.º 1
0
 /**
  * Returns the storage key as a filename
  * @param string $key
  * @return string
  */
 public function getStorageKey($key)
 {
     return parent::getStorageKey($key . $this->_userKey) . self::EXTENSION;
 }
Exemplo n.º 2
0
 /**
  * Set the accessToken
  * @param string $accessToken
  */
 public function login($accessToken)
 {
     $this->_accessToken = new AccessToken(['access_token' => $accessToken]);
     $this->storage->set('token', $this->_accessToken);
 }