Skip to content

Commit 88abe26

Browse files
committed
cs
1 parent 63152ae commit 88abe26

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

DependencyInjection/Compiler/LoggerPass.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111

1212
namespace FOS\HttpCacheBundle\DependencyInjection\Compiler;
1313

14-
use FOS\HttpCache\Events;
1514
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
1716

1817
/**
19-
* Announce the log listener to the symfony event system
18+
* Announce the log listener to the symfony event system.
2019
*/
2120
class LoggerPass implements CompilerPassInterface
2221
{
@@ -31,7 +30,7 @@ public function process(ContainerBuilder $container)
3130

3231
$container->getDefinition('fos_http_cache.event_listener.log')
3332
->setAbstract(false)
34-
->addTag('kernel.event_subscriber');
33+
->addTag('kernel.event_subscriber')
3534
;
3635
}
3736
}

DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ private function loadTest(ContainerBuilder $container, XmlFileLoader $loader, ar
354354

355355
if (isset($config['client']['varnish']['enabled'])
356356
|| isset($config['client']['nginx']['enabled'])) {
357-
358357
if ($config['client']['varnish']['enabled']) {
359358
$loader->load('varnish_test_client.xml');
360359
}

Resources/doc/overview.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@ Overview
44
Installation
55
------------
66

7-
This bundle is available on Packagist_. You can install it using Composer:
7+
This bundle is available on Packagist_. You can install it using Composer. Note
8+
that the FOSHttpCache_ library needs a ``psr/http-message-implementation`` and
9+
``php-http/client-implementation``. If your project does not contain one,
10+
composer will complain that it did not find ``psr/http-message-implementation``.
811

9-
.. code-block:: bash
10-
11-
$ composer require friendsofsymfony/http-cache-bundle
12-
13-
Note that the FOSHttpCache_ library needs a ``psr/http-message-implementation``
14-
and ``php-http/client-implementation``. If your project does not contain one,
15-
composer will complain that it did not find ``psr/http-message-implementation``:
12+
To install the bundle together with guzzle, run:
1613

1714
.. code-block:: bash
1815
19-
$ composer require friendsofsymfony/http-cache-bundle:~2.0 guzzlehttp/psr7:^1.0 php-http/guzzle6-adapter:^1.0.0
16+
$ composer require friendsofsymfony/http-cache-bundle guzzlehttp/psr7 php-http/guzzle6-adapter
2017
21-
If you want to use something else than Guzzle 6, see packagist
22-
for a list of available `client implementations`_.
18+
If you want to use something else than Guzzle 6, see packagist for a list of
19+
available `client implementations`_.
2320

2421
Then add the bundle to your application:
2522

0 commit comments

Comments
 (0)