You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integrations/symfony-bundle.rst
+44-38Lines changed: 44 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Usage
16
16
factory: 'httplug.factory.guzzle6'
17
17
plugins: ['httplug.plugin.logger']
18
18
config:
19
+
verify: false
20
+
timeout: 2
19
21
20
22
.. code-block:: php
21
23
@@ -25,7 +27,7 @@ Usage
25
27
Installation
26
28
````````````
27
29
28
-
Install the Httplug bundle with composer and enabled it in your AppKernel.php.
30
+
Install the Httplug bundle with composer and enable it in your AppKernel.php.
29
31
30
32
.. code-block:: bash
31
33
@@ -43,18 +45,18 @@ Install the Httplug bundle with composer and enabled it in your AppKernel.php.
43
45
44
46
You will find all available configuration at the :doc:`full configuration </integrations/symfony-full-configuration>` page.
45
47
46
-
Web debug toolbar
48
+
Web Debug Toolbar
47
49
`````````````````
48
-
.. image:: assets/img/debug-toolbar.png
50
+
.. image:: /assets/img/debug-toolbar.png
49
51
:align:right
50
52
:width:120px
51
53
52
-
When using a client configured with HttplugBundle you will get debug information in the web debug toolbar. It will tell you how many request were made and how many of those that were successful or not. It will also show you detailed information about each request.
54
+
When using a client configured with HttplugBundle, you will get debug information in the web debug toolbar. It will tell you how many request were made and how many of those that were successful or not. It will also show you detailed information about each request.
53
55
54
-
Discovery of factory classes
56
+
Discovery of Factory Classes
55
57
````````````````````````````
56
58
57
-
If you want to automatically find our factory classes you should install and enabled ``puli/symfony-bundle``. If you do not want use auto discovery you should specify all the factory classes for you client. The following example show how you configure factory classes using Guzzle.
59
+
If you want the bundle to automatically find usable factory classes, install and enable ``puli/symfony-bundle``. If you do not want use auto discovery, you need to specify all the factory classes for you client. The following example show how you configure factory classes using Guzzle:
58
60
59
61
.. code-block:: yaml
60
62
@@ -67,8 +69,8 @@ If you want to automatically find our factory classes you should install and ena
67
69
68
70
69
71
70
-
Configure your client
71
-
`````````````````````
72
+
Configure Clients
73
+
`````````````````
72
74
73
75
You can configure your clients with default options. These default values will be specific to you client you are using. The clients are later registered as services.
74
76
@@ -99,6 +101,10 @@ You can configure your clients with default options. These default values will b
99
101
// will be the same as ``httplug.client.my_guzzle5``
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:
105
+
106
+
* ``httplug.factory.guzzle5``
107
+
* ``httplug.factory.guzzle6``
102
108
103
109
Plugins
104
110
```````
@@ -147,38 +153,38 @@ You can configure a client with authentication. Valid authentication types are `
\* *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. The default services in turn use the service discovery mechanism to provide the best available implementation. You can specify a class for each of the default services to use instead of discovery, as long as those classes can be instantiated without arguments.*
\* *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.*
0 commit comments