From d38c899188e46929eae3c144c4be5901cc3eee77 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 1 Mar 2016 18:11:39 +0100 Subject: [PATCH] Added docs for missing factories --- integrations/symfony-bundle.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/integrations/symfony-bundle.rst b/integrations/symfony-bundle.rst index edb779e..ae8d4aa 100644 --- a/integrations/symfony-bundle.rst +++ b/integrations/symfony-bundle.rst @@ -91,22 +91,25 @@ You can configure your clients with default options. These default values will b headers: Content-Type: 'application/json' acme: - factory: 'httplug.factory.guzzle6' + factory: 'httplug.factory.curl' config: - base_uri: 'http://google.se/' + 78: 4 #CURLOPT_CONNECTTIMEOUT .. code-block:: php $httpClient = $this->container->get('httplug.client.my_guzzle5'); - $httpClient = $this->container->get('httplug.client.acme'); + $httpClient = $this->container->get('httplug.client.curl'); // will be the same as ``httplug.client.my_guzzle5`` $httpClient = $this->container->get('httplug.client'); The bundle has client factory services that you can use to build your client. If you need a very custom made client you could create your own factory service implementing ``Http\HttplugBudle\ClientFactory\ClientFactory``. The build in services are: +* ``httplug.factory.curl`` * ``httplug.factory.guzzle5`` * ``httplug.factory.guzzle6`` +* ``httplug.factory.react`` +* ``httplug.factory.socket`` Plugins ```````