From a46b68fc89aeb600b97917d6daa21ec002aa71b0 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Mon, 6 Jan 2020 08:27:23 +0100 Subject: [PATCH] improve bundle installation documentation --- integrations/symfony-bundle.rst | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/integrations/symfony-bundle.rst b/integrations/symfony-bundle.rst index da91c05..0a3a177 100644 --- a/integrations/symfony-bundle.rst +++ b/integrations/symfony-bundle.rst @@ -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 ` page. + Using Symfony Flex ------------------ @@ -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 = [ @@ -45,9 +67,6 @@ clients. ]; } -You can find all available configuration at the -:doc:`full configuration ` page. - Usage `````