Skip to content

CacheCollectorPass does not work anymore when the cache is decorated #38055

Closed
@shyim

Description

@shyim

Symfony version(s) affected: 4.4.13 (introduced with 4.4.8)

Description
We have defined in the framework.yaml an own cache pool. We are also decorating that cache.pool. After this the
\Symfony\Component\Cache\DependencyInjection\CacheCollectorPass is throwing an ServiceNotFoundException. It seems so that the definition name changes while decorating.

How to reproduce

  • Create a new cache pool in framework.yaml
  • Decorate it
  • Container cannot be created anymore due missing definition

Possible Solution
Check in addToCollector is it an alias or an actual definition

Additional context

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