Skip to content

Commit 0f7e604

Browse files
authored
Merge pull request #655 from FriendsOfSymfony/interlink-fastly-doc
link to fastly client documentation
2 parents 9a7b7ce + 9fe5844 commit 0f7e604

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Resources/doc/features/invalidation.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Invalidation
66
* :ref:`Varnish <foshttpcache:varnish configuration>`
77
* :ref:`Nginx <foshttpcache:nginx configuration>` (except regular expressions)
88
* :doc:`symfony-http-cache` (except regular expressions)
9-
* Fastly (except regular expressions)
9+
* :ref:`Fastly <foshttpcache:fastly configuration>` (except regular expressions)
10+
* :ref:`configuration_cloudflare`
11+
* :ref:`configuration_cloudfront`
1012

1113
**Preparation**:
1214

Resources/doc/reference/configuration/proxy-client.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ HTTP method for sending purge requests to the Symfony HttpCache. Make sure to
237237
configure the purge plugin for your HttpCache with the matching header if you
238238
change this.
239239

240+
.. _configuration_cloudflare:
241+
240242
cloudflare
241243
----------
242244

@@ -274,6 +276,8 @@ Identifier for the Cloudflare zone you want to purge the cache for.
274276
List of Cloudflare API endpoints to use for purging the cache. You can use this to specify a different
275277
endpoint for testing purposes.
276278

279+
.. _configuration_cloudfront:
280+
277281
cloudfront
278282
----------
279283
Talking to AWS cloudfront requires the ``jean-beru/fos-http-cache-cloudfront`` library. You need to require this dependency before you can configure the ``cloudfront`` proxy client.
@@ -322,7 +326,7 @@ Service identifier of a `AsyncAws\CloudFront\CloudFrontClient` client. More info
322326
`AWS Async documentation_`. It can not be used with the ``configuration`` option.
323327

324328
Fastly
325-
----------
329+
------
326330
.. code-block:: yaml
327331
328332
# config/packages/fos_http_cache.yaml

src/EventListener/FlashMessageListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function onKernelResponse(ResponseEvent $event): void
5757
} catch (SessionNotFoundException) {
5858
return;
5959
}
60-
if (!($session instanceof FlashBagAwareSessionInterface)) {
60+
if (!$session instanceof FlashBagAwareSessionInterface) {
6161
return;
6262
}
6363

0 commit comments

Comments
 (0)