Skip to content

Commit

Permalink
[AnnotationCacheWarmer] add RedirectController to annotation cache
Browse files Browse the repository at this point in the history
This prevents to exclude the RedirectController from the warmed annotation cache which would lead to warnings when trying to use the warmed cache on read only file systems

See #29357
  • Loading branch information
jenschude committed Oct 1, 2019
1 parent d8a026b commit 477b3cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<service id="annotations.cache_warmer" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer">
<argument type="service" id="annotations.reader" />
<argument>%kernel.cache_dir%/annotations.php</argument>
<argument>#^Symfony\\(?:Component\\HttpKernel\\|Bundle\\FrameworkBundle\\Controller\\(?!AbstractController$|Controller$))#</argument>
<argument>#^Symfony\\(?:Component\\HttpKernel\\|Bundle\\FrameworkBundle\\Controller\\(?!AbstractController$|RedirectController$|Controller$))#</argument>
<argument>%kernel.debug%</argument>
</service>

Expand Down

0 comments on commit 477b3cc

Please sign in to comment.