public function __construct($config, Exception $exception) { //Set settings $settings = new Settings(); $settings->setApiKey($config['api_key']); $settings->setScheme($config['scheme']); $settings->setVersion($config['version']); $this->settings = $settings; $this->config = $config; $this->exception = $exception; $this->_processException(); }