Tags: webfactory/WebfactoryHttpCacheBundle
Tags
Read attributes as provided by the event object, and pass on attribut… …es to other event handlers (Case 177753) (#15) This adapts webfactory/WebfactoryWfdMetaBundle#53: > This PR uses the new API introduced in symfony/symfony#46001 to read controller attributes through the `ControllerEvent`, and to make them available to other event handlers when replacing the controller. > > This is necessary when using the `Send304IfNotModified` attribute in combination with `\Symfony\Component\HttpKernel\Attribute\Cache`. Without this change, `\Symfony\Component\HttpKernel\EventListener\CacheAttributeListener` will not set `Cache` headers accordingly. The result is that you may get `304 Not Modified` responses on conditional requests with `If-Modified-Since`, but these are treated as `stale/cache` only in the HttpCache and have a `Cache-Control: must-revalidate, private` header. And adds some tests.
Remove annotations support to gain Symfony 7 compatibility (#11) This removes the annotation that has been deprecated in 1.4.0. Thus, we get rid of the `doctrine/annotations` dependency and the `annotation_reader` service, clearing the path towards Symfony 7 compatibility. The PHP 8.1 minimum requirement effectively limits usage with Symfony < 5.
PreviousNext