src/EventListener/CacheControlListener.php 1 location
|
@@ 23-27 (lines=5) @@
|
| 20 |
|
use Symfony\Component\HttpKernel\Kernel; |
| 21 |
|
use Symfony\Component\HttpKernel\KernelEvents; |
| 22 |
|
|
| 23 |
|
if (Kernel::MAJOR_VERSION >= 5) { |
| 24 |
|
class_alias(ResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\CacheControlResponseEvent'); |
| 25 |
|
} else { |
| 26 |
|
class_alias(FilterResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\CacheControlResponseEvent'); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
/** |
| 30 |
|
* Set caching settings on matching response according to the configurations. |
src/EventListener/FlashMessageListener.php 1 location
|
@@ 25-29 (lines=5) @@
|
| 22 |
|
use Symfony\Component\HttpKernel\KernelEvents; |
| 23 |
|
use Symfony\Component\OptionsResolver\OptionsResolver; |
| 24 |
|
|
| 25 |
|
if (Kernel::MAJOR_VERSION >= 5) { |
| 26 |
|
class_alias(ResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\FlashMessageResponseEvent'); |
| 27 |
|
} else { |
| 28 |
|
class_alias(FilterResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\FlashMessageResponseEvent'); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* This event handler reads all flash messages and moves them into a cookie. |
src/EventListener/TagListener.php 1 location
|
@@ 27-31 (lines=5) @@
|
| 24 |
|
use Symfony\Component\HttpKernel\Kernel; |
| 25 |
|
use Symfony\Component\HttpKernel\KernelEvents; |
| 26 |
|
|
| 27 |
|
if (Kernel::MAJOR_VERSION >= 5) { |
| 28 |
|
class_alias(ResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\TagResponseEvent'); |
| 29 |
|
} else { |
| 30 |
|
class_alias(FilterResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\TagResponseEvent'); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* Event handler for the cache tagging tags. |