public function __construct(IOAuth2Storage $storage, $config = array()) { $this->storage = $storage; // Configuration options $this->setDefaultOptions(); foreach ($config as $name => $value) { $this->setVariable($name, $value); } }