diff --git a/Resources/doc/features/invalidation.rst b/Resources/doc/features/invalidation.rst index 6f3f9eaa..cb7c1953 100644 --- a/Resources/doc/features/invalidation.rst +++ b/Resources/doc/features/invalidation.rst @@ -6,7 +6,9 @@ Invalidation * :ref:`Varnish ` * :ref:`Nginx ` (except regular expressions) * :doc:`symfony-http-cache` (except regular expressions) -* Fastly (except regular expressions) +* :ref:`Fastly ` (except regular expressions) +* :ref:`configuration_cloudflare` +* :ref:`configuration_cloudfront` **Preparation**: diff --git a/Resources/doc/reference/configuration/proxy-client.rst b/Resources/doc/reference/configuration/proxy-client.rst index 40a3562b..76e0e405 100644 --- a/Resources/doc/reference/configuration/proxy-client.rst +++ b/Resources/doc/reference/configuration/proxy-client.rst @@ -237,6 +237,8 @@ HTTP method for sending purge requests to the Symfony HttpCache. Make sure to configure the purge plugin for your HttpCache with the matching header if you change this. +.. _configuration_cloudflare: + cloudflare ---------- @@ -274,6 +276,8 @@ Identifier for the Cloudflare zone you want to purge the cache for. List of Cloudflare API endpoints to use for purging the cache. You can use this to specify a different endpoint for testing purposes. +.. _configuration_cloudfront: + cloudfront ---------- 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 `AWS Async documentation_`. It can not be used with the ``configuration`` option. Fastly ----------- +------ .. code-block:: yaml # config/packages/fos_http_cache.yaml diff --git a/src/EventListener/FlashMessageListener.php b/src/EventListener/FlashMessageListener.php index 787dab0f..11470293 100644 --- a/src/EventListener/FlashMessageListener.php +++ b/src/EventListener/FlashMessageListener.php @@ -57,7 +57,7 @@ public function onKernelResponse(ResponseEvent $event): void } catch (SessionNotFoundException) { return; } - if (!($session instanceof FlashBagAwareSessionInterface)) { + if (!$session instanceof FlashBagAwareSessionInterface) { return; }