/** * setHttpClientHandler - Returns an instance of the HTTP client * handler * * @param \Facebook\HttpClients\FacebookHttpable */ public static function setHttpClientHandler(FacebookHttpable $handler) { static::$httpClientHandler = $handler; }
/** * getHttpClientHandler - Returns an instance of the HTTP client * data handler * * @return FacebookHttpable */ public static function getHttpClientHandler() { return static::$httpClientHandler ?: (static::$httpClientHandler = new FacebookCurlHttpClient()); }