Skip to content

[FrameworkBundle] Annotation cache does not override default settings #26086

@Laizerox

Description

@Laizerox
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.cache

The 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy