Skip to content

Commit debdcaf

Browse files
authored
Merge pull request #275 from php-http/bundle-installation
improve bundle installation documentation for symfony 4+
2 parents f04eb3b + a46b68f commit debdcaf

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

integrations/symfony-bundle.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ This guide explains how to configure HTTPlug in the Symfony framework. See the
1212
Installation
1313
````````````
1414

15+
HTTPlug works with any HTTP client implementation that provides PSR-18 or a
16+
HTTPlug adapter. The flex recipe installs the php-http curl client. See
17+
:doc:`../clients` for a list of clients known to work with the bundle.
18+
19+
You can find all available configuration at the
20+
:doc:`full configuration </integrations/symfony-full-configuration>` page.
21+
1522
Using Symfony Flex
1623
------------------
1724

@@ -35,8 +42,23 @@ only need to add ``php-http/httplug-bundle``. Otherwise, you also need to
3542
specify an HTTP client to use - see :doc:`../clients` for a list of available
3643
clients.
3744

45+
Activate Bundle in Symfony 4 and newer
46+
""""""""""""""""""""""""""""""""""""""
47+
48+
.. code-block:: php
49+
50+
// config/bundles.php
51+
return [
52+
...
53+
Http\HttplugBundle\HttplugBundle::class => ['all' => true],
54+
];
55+
56+
Activate Bundle in Symfony 3
57+
""""""""""""""""""""""""""""
58+
3859
.. code-block:: php
3960
61+
// app/AppKernel.php
4062
public function registerBundles()
4163
{
4264
$bundles = [
@@ -45,9 +67,6 @@ clients.
4567
];
4668
}
4769
48-
You can find all available configuration at the
49-
:doc:`full configuration </integrations/symfony-full-configuration>` page.
50-
5170
Usage
5271
`````
5372

0 commit comments

Comments
 (0)