EmanueleMinotto / TwigCacheBundle

Symfony Bundle for asm89/twig-cache-extension
59 stars 13 forks source link

How this is settings up??? #18

Closed Slavenin closed 6 years ago

Slavenin commented 7 years ago

Hi! I try use this bundle. I do all by guide: add in config:

twig_cache:
    service: 'asm89_cache'

add in parameters:

twig_cache.adapter.class: Asm89\Twig\CacheExtension\CacheProvider\PsrCacheAdapter

add in services:

    asm89_cache:
        class: Asm89\Twig\CacheExtension\Extension
        arguments: ["@twig_cache.strategy.lifetime"]
        tags:
           - { name: twig.extension }

and i see exception:

ServiceCircularReferenceException in CheckCircularReferencesPass.php line 69:
Circular reference detected for service "asm89_cache", path: "asm89_cache -> twig_cache.strategy.lifetime -> twig_cache.adapter -> asm89_cache".

What i do wrong?

toooni commented 6 years ago

Have you solved your problem, or should I take a look at it?