Exemple #1
0
 /**
  * The REST-O-Auth server requires a IOAuth2Storage compatible storage instance. The other
  * parameters are optional. While developing your REST web service, it's a good idea to
  * set mode to 'debug'.
  *
  * @param mixed $storage array or OAuth2\Storage
  * @param string $mode
  *    In 'debug' mode you get more and prettier output. Defaults to 'production'.
  * @param string $realm
  *    Think 'title' of your web service. With OAuth you will probably never see this, so it's optional.
  */
 public function __construct($storage, $mode = 'production', $realm = 'REST-O-Auth server')
 {
     parent::__construct($mode, $realm);
     $this->storage = $storage;
 }