Skip to content

accessing cache pool from service container #25342

Closed
@wtorsi

Description

@wtorsi
Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.0

After clean install, I can't get access to public cache pools app and system, either to my custom cache pool.
Strange things, they are all registered in container and displayed using 
bin/console debug:container command and they are both public, but when I try to get them through 
$this->get("cache.app\|cache.system\|cache.custom") I get 
ServiceNotFoundException.

What I am doing wrong? Any ideas?

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