-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| BC Break report? | no |
| RFC? | no |
| Symfony version | 3.4.4 |
As the title describes when defined in config.yml
framework:
annotations:
cache: doctrine_cache.providers.annotations.cacheThe annotation_reader does not get injected with proper cache but remains as ArrayCache.
The problem appears to happen when AddAnnotationsCachedReaderPass is being processed definition of annotations.cached_reader is already removed and $container->hasDefinition('annotations.cached_reader') returns false.
Default settings such as file for framework.annotations.cache does not appear to work either.
When default cache is being overridden in annotations.xml of FrameworkBundle manually it appears the cache starts to work.
When using bundles such as FOSRestBundle the lack of cache causes annotation_reader to parse annotations on each request.
Either I'm doing something wrong or this has broken at some stage.