@@ -856,7 +856,7 @@ If one content corresponds to one URL, the ``PURGE`` model works well.
856
856
You send a request to the cache proxy with the HTTP method ``PURGE `` (using
857
857
the word "PURGE" is a convention, technically this can be any string) instead
858
858
of ``GET `` and make the cache proxy detect this and remove the data from the
859
- cache instead of going to Symfony to get a response.
859
+ cache instead of going to the application to get a response.
860
860
861
861
Here is how you can configure the Symfony reverse proxy to support the
862
862
``PURGE `` HTTP method::
@@ -877,7 +877,10 @@ Here is how you can configure the Symfony reverse proxy to support the
877
877
}
878
878
879
879
if ('127.0.0.1' !== $request->getClientIp()) {
880
- return new Response('Invalid HTTP method', Response::HTTP_BAD_REQUEST);
880
+ return new Response(
881
+ 'Invalid HTTP method',
882
+ Response::HTTP_BAD_REQUEST
883
+ );
881
884
}
882
885
883
886
$response = new Response();
@@ -987,8 +990,10 @@ First, to use ESI, be sure to enable it in your application configuration:
987
990
<container xmlns =" http://symfony.com/schema/dic/symfony"
988
991
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
989
992
xmlns : framework =" http://symfony.com/schema/dic/symfony"
990
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
991
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
993
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
994
+ http://symfony.com/schema/dic/services/services-1.0.xsd
995
+ http://symfony.com/schema/dic/symfony
996
+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
992
997
993
998
<framework : config >
994
999
<!-- ... -->
@@ -1115,8 +1120,10 @@ that must be enabled in your configuration:
1115
1120
<container xmlns =" http://symfony.com/schema/dic/services"
1116
1121
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1117
1122
xmlns : doctrine =" http://symfony.com/schema/dic/framework"
1118
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1119
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1123
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
1124
+ http://symfony.com/schema/dic/services/services-1.0.xsd
1125
+ http://symfony.com/schema/dic/symfony
1126
+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1120
1127
1121
1128
<!-- ... -->
1122
1129
<framework : config >
0 commit comments