Skip to content

improve bundle installation documentation for symfony 4+ #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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