-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix list of core cache warmers #10853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR was merged into the 3.4 branch. Discussion ---------- Fix list of core cache warmers Currently there are many core cache warmers missing in the documentation: ```bash Symfony Container Services Tagged with "kernel.cache_warmer" Tag ================================================================ ----------------------------------------------------- ---------- ----------------------------------------------------------------------- Service ID priority Class name ----------------------------------------------------- ---------- ----------------------------------------------------------------------- annotations.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer doctrine.orm.proxy_cache_warmer Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer router.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer serializer.mapping.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\SerializerCacheWarmer templating.cache_warmer.template_paths 20 Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer translation.warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer twig.cache_warmer Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer twig.template_cache_warmer Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer validator.mapping.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer ----------------------------------------------------- ---------- ----------------------------------------------------------------------- ``` Commits ------- 1f5fc2a Fix list of core cache warmers
@alexander-schranz thanks for this contribution. Sadly, solving this is more complicated than it looks in modern Symfony versions. Since apps are now much more modular, the list of warmers depends on the components/bundles you pick. For example, my list of warmers for the Symfony Demo app is different that the list you showed here: $ php bin/console debug:container --tag=kernel.cache_warmer
Symfony Container Services Tagged with "kernel.cache_warmer" Tag
================================================================
--------------------------------- --------------------------------------------------------------------
Service ID Class name
--------------------------------- --------------------------------------------------------------------
annotations.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer
doctrine.orm.proxy_cache_warmer Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer
router.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer
translation.warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer
twig.cache_warmer Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer
twig.template_cache_warmer Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer
validator.mapping.cache_warmer Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer
--------------------------------- -------------------------------------------------------------------- So, to avoid confusion and to make docs easier to maintain, I've merged your PR but, after that, I've replaced in 8953c9d the table of cache warmers with the Thanks for understanding! |
@javiereguiluz sounds reasonable did stumble over this because of a symfony certification question in the university where |
Currently there are many core cache warmers missing in the documentation: