/** * Creates a new `Request_Client` object, * allows for dependency injection. * * @param array $params Params * @throws Request_Exception */ public function __construct(array $params = array()) { // Check that PECL HTTP supports requests if (!http_support(HTTP_SUPPORT_REQUESTS)) { throw new Request_Exception('Need HTTP request support!'); } // Carry on parent::__construct($params); }