Skip to content

Commit 5dcaf8a

Browse files
committed
Merge branch 'master' into adjust-php-http
2 parents ccdd3da + cb31f52 commit 5dcaf8a

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FOSHttpCache
22
============
3-
[![Build Status](https://travis-ci.org/FriendsOfSymfony/FOSHttpCache.svg?branch=master)](https://travis-ci.org/FriendsOfSymfony/FOSHttpCache)
4-
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/badges/quality-score.png?s=bc263d4deb45becdb1469b71e8630c5e65efdcf4)](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/)
3+
[![Build Status](https://travis-ci.org/FriendsOfSymfony/FOSHttpCache.svg?branch=master)](https://travis-ci.org/FriendsOfSymfony/FOSHttpCache)
4+
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/badges/quality-score.png?s=bc263d4deb45becdb1469b71e8630c5e65efdcf4)](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/)
55
[![Code Coverage](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/badges/coverage.png?s=a19df7bb7e830642fb937891aebe8c3e1c9f59c0)](https://scrutinizer-ci.com/g/FriendsOfSymfony/FOSHttpCache/)
66
[![Latest Stable Version](https://poser.pugx.org/friendsofsymfony/http-cache/v/stable.svg)](https://packagist.org/packages/friendsofsymfony/http-cache)
77

@@ -15,10 +15,10 @@ and to test your caching and invalidation code against a Varnish setup.
1515
It does this by abstracting some caching concepts and attempting to make sure these
1616
can be supported across Varnish, Nginx and Symfony HttpCache.
1717

18-
If you use Symfony2, have a look at the
18+
If you use Symfony, have a look at the
1919
[FOSHttpCacheBundle](https://github.com/FriendsOfSymfony/FOSHttpCacheBundle).
2020
The bundle provides the invalidator as a service, along with a number of
21-
Symfony2-specific features to help with caching and caching proxies.
21+
Symfony-specific features to help with caching and caching proxies.
2222

2323
Features
2424
--------
@@ -27,7 +27,7 @@ Features
2727
with minimal impact on performance.
2828
* Cache tagging abstraction, uses BAN with Varnish and allows tagging support for other caching proxies in the future.
2929
* Use the built-in support for [Varnish](http://foshttpcache.readthedocs.org/en/stable/varnish-configuration.html)
30-
3 and 4, [NGINX](http://foshttpcache.readthedocs.org/en/stable/nginx-configuration.html), the
30+
3 and 4, [NGINX](http://foshttpcache.readthedocs.org/en/stable/nginx-configuration.html), the
3131
[Symfony reverse proxy from the http-kernel component](http://foshttpcache.readthedocs.org/en/stable/symfony-cache-configuration.html)
3232
or easily implement your own caching proxy client.
3333
* [Test your application](http://foshttpcache.readthedocs.org/en/stable/testing-your-application.html)

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
"minimum-stability": "dev",
2424
"require": {
2525
"php": ">=5.4.8",
26-
"symfony/event-dispatcher": "~2.3",
27-
"symfony/options-resolver": "~2.3",
26+
"symfony/event-dispatcher": "^2.3||^3.0",
27+
"symfony/options-resolver": "^2.3||^3.0",
2828
"php-http/client-implementation": "^1.0.0",
2929
"php-http/discovery": "^0.3.0"
3030
},
3131
"require-dev": {
3232
"mockery/mockery": "~0.9.1",
3333
"monolog/monolog": "~1.0",
3434
"php-http/guzzle6-adapter": "^0.2.0",
35-
"symfony/process": "~2.3",
36-
"symfony/http-kernel": "~2.3"
35+
"symfony/process": "^2.3||^3.0",
36+
"symfony/http-kernel": "^2.3||^3.0"
3737
},
3838
"suggest": {
3939
"monolog/monolog": "For logging issues while invalidating"

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Varnish, NGINX or the Symfony HttpCache class. Use this library to send
1313
invalidation requests from your application to the caching proxy and to test
1414
your caching and invalidation setup.
1515

16-
If you use the Symfony2 full stack framework, have a look at the FOSHttpCacheBundle_.
16+
If you use the Symfony full stack framework, have a look at the FOSHttpCacheBundle_.
1717
The bundle provides the Invalidator as a service, support for the built-in cache
18-
kernel of Symfony and a number of Symfony2-specific features to help with caching and
18+
kernel of Symfony and a number of Symfony-specific features to help with caching and
1919
caching proxies.
2020

2121
Contents:

doc/invalidation-introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Cache invalidation has two possible downsides:
9999
changed, a lot more is involved in invalidating all of its representations.
100100
In other words, invalidation adds a layer of complexity to your application.
101101
This library tries to help reduce complexity, for instance by
102-
:ref:`tagging <tags>` cached content. Additionally, if you use Symfony2, we
102+
:ref:`tagging <tags>` cached content. Additionally, if you use Symfony, we
103103
recommend you use the FOSHttpCacheBundle_.
104104
which provides additional functionality to make invalidation easier.
105105
* Invalidation is done through requests to your caching proxy. Sending these

doc/user-context.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ It is up to you to return the user context hash in response to the hash request
127127
// 406 Not acceptable in case of an incorrect accept header
128128
header('HTTP/1.1 406');
129129

130-
If you use Symfony2, the FOSHttpCacheBundle_ will set the correct response
130+
If you use Symfony, the FOSHttpCacheBundle_ will set the correct response
131131
headers for you.
132132

133133
Caching the Hash Response

doc/varnish-configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ User Context
202202

203203
Feature: :doc:`user context hashing <user-context>`
204204

205-
The ``fos_user_context.vcl`` needs the ``user_context_hash_url`` subroutine that sets a URL to the request lookup URL. The default URL is ``/_fos_user_context_hash`` and you can simply include ``resources/config/varnish-[version]/fos_user_context_url.vcl`` in your configuration to provide this. If you need a different URL, include a custom file implementing the ``user_context_hash_url`` subroutine.
205+
The ``fos_user_context.vcl`` needs the ``user_context_hash_url`` subroutine that sets a URL to the request lookup URL. The default URL is ``/_fos_user_context_hash`` and you can simply include ``resources/config/varnish-[version]/fos_user_context_url.vcl`` in your configuration to provide this. If you need a different URL, include a custom file implementing the ``user_context_hash_url`` subroutine.
206206

207207

208208
To enable support add the following to ``your_varnish.vcl``:
@@ -267,7 +267,7 @@ request with :ref:`a proper user hash <return context hash>`.
267267
We do not use ``X-Original-Url`` here, as the header will be sent to the
268268
backend and the header has semantical meaning for some applications, which
269269
would lead to problems. For example, the Microsoft IIS rewriting module
270-
uses it, and consequently Symfony2 also looks into it to support IIS.
270+
uses it, and consequently Symfony also looks into it to support IIS.
271271

272272
.. tip::
273273

@@ -365,15 +365,15 @@ To enable support add the following to ``your_varnish.vcl``:
365365
.. code-block:: varnish4
366366
367367
include "path-to-config/varnish-4/fos_debug.vcl";
368-
368+
369369
sub vcl_deliver {
370370
call fos_debug_deliver;
371371
}
372372
373373
.. code-block:: varnish3
374374
375375
include "path-to-config/varnish-3/fos_debug.vcl";
376-
376+
377377
sub vcl_deliver {
378378
call fos_debug_deliver;
379379
}

src/Test/Proxy/VarnishProxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function start()
5757

5858
$this->runCommand($this->getBinary(), $args);
5959

60-
$this->waitFor($this->ip, $this->getPort(), 2000);
60+
$this->waitFor($this->ip, $this->getPort(), 5000);
6161
}
6262

6363
/**
@@ -72,7 +72,7 @@ public function stop()
7272
// Ignore if command fails when Varnish wasn't running
7373
}
7474
unlink($this->pid);
75-
$this->waitUntil($this->ip, $this->getPort(), 2000);
75+
$this->waitUntil($this->ip, $this->getPort(), 5000);
7676
}
7777
}
7878

0 commit comments

Comments
 (0)