Skip to content

Commit 710943b

Browse files
committed
symfony bundle doc cleanup
1 parent eacd0af commit 710943b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

integrations/symfony-bundle.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,12 @@ You can configure your clients with default options. These default values will b
8585
config:
8686
# These options are given to Guzzle without validation.
8787
defaults:
88-
base_uri: 'http://google.se/'
8988
verify_ssl: false
9089
timeout: 4
91-
headers:
92-
Content-Type: 'application/json'
9390
acme:
9491
factory: 'httplug.factory.guzzle6'
9592
config:
96-
base_uri: 'http://google.se/'
93+
timeout: 2
9794
9895
.. code-block:: php
9996
@@ -103,7 +100,7 @@ You can configure your clients with default options. These default values will b
103100
// will be the same as ``httplug.client.my_guzzle5``
104101
$httpClient = $this->container->get('httplug.client');
105102
106-
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:
103+
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 built-in services are:
107104

108105
* ``httplug.factory.guzzle5``
109106
* ``httplug.factory.guzzle6``
@@ -189,7 +186,7 @@ List of Services
189186
\* *These services are always an alias to another service. You can specify your own service or leave the default, which is the same name with `.default` appended.*
190187

191188

192-
Useage for Reusable Bundles
189+
Usage for Reusable Bundles
193190
``````````````````````````
194191

195192
Rather than code against specific HTTP clients, you want to use the Httplug ``Client`` interface. To avoid building your own infrastructure to define services for the client, simply ``require: php-http/httplug-bundle`` in your bundles ``composer.json``. You SHOULD provide a configuration option to specify the which HTTP client service to use for each of your services. This option should default to ``httplug.client``. This way, the default case needs no additional configuration for your users, but they have the option of using specific clients with each of your services.

0 commit comments

Comments
 (0)