Skip to content

Commit

Permalink
Merge pull request #275 from php-http/bundle-installation
Browse files Browse the repository at this point in the history
improve bundle installation documentation for symfony 4+
  • Loading branch information
dbu committed Jan 6, 2020
2 parents f04eb3b + a46b68f commit debdcaf
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions integrations/symfony-bundle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ This guide explains how to configure HTTPlug in the Symfony framework. See the
Installation
````````````

HTTPlug works with any HTTP client implementation that provides PSR-18 or a
HTTPlug adapter. The flex recipe installs the php-http curl client. See
:doc:`../clients` for a list of clients known to work with the bundle.

You can find all available configuration at the
:doc:`full configuration </integrations/symfony-full-configuration>` page.

Using Symfony Flex
------------------

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

Activate Bundle in Symfony 4 and newer
""""""""""""""""""""""""""""""""""""""

.. code-block:: php
// config/bundles.php
return [
...
Http\HttplugBundle\HttplugBundle::class => ['all' => true],
];
Activate Bundle in Symfony 3
""""""""""""""""""""""""""""

.. code-block:: php
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
Expand All @@ -45,9 +67,6 @@ clients.
];
}
You can find all available configuration at the
:doc:`full configuration </integrations/symfony-full-configuration>` page.

Usage
`````

Expand Down

0 comments on commit debdcaf

Please sign in to comment.