Skip to content

Commit e80b950

Browse files
committed
Merge pull request #95 from Nyholm/symfony_bundle_2
Added docs for missing factories
2 parents eacd0af + d38c899 commit e80b950

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

integrations/symfony-bundle.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,25 @@ You can configure your clients with default options. These default values will b
9191
headers:
9292
Content-Type: 'application/json'
9393
acme:
94-
factory: 'httplug.factory.guzzle6'
94+
factory: 'httplug.factory.curl'
9595
config:
96-
base_uri: 'http://google.se/'
96+
78: 4 #CURLOPT_CONNECTTIMEOUT
9797
9898
.. code-block:: php
9999
100100
$httpClient = $this->container->get('httplug.client.my_guzzle5');
101-
$httpClient = $this->container->get('httplug.client.acme');
101+
$httpClient = $this->container->get('httplug.client.curl');
102102
103103
// will be the same as ``httplug.client.my_guzzle5``
104104
$httpClient = $this->container->get('httplug.client');
105105
106106
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:
107107

108+
* ``httplug.factory.curl``
108109
* ``httplug.factory.guzzle5``
109110
* ``httplug.factory.guzzle6``
111+
* ``httplug.factory.react``
112+
* ``httplug.factory.socket``
110113

111114
Plugins
112115
```````

0 commit comments

Comments
 (0)