parameters:
    php_fast_cache.cache.class: phpFastCache\Bundle\Service\Cache
    php_fast_cache.human_readable.class: phpFastCache\Bundle\Twig\HumanReadableExtension\Extension
    php_fast_cache.twig_cache.class: phpFastCache\Bundle\Twig\CacheExtension\Extension
    php_fast_cache.twig_cache_stategy.class: phpFastCache\Bundle\Twig\CacheExtension\CacheStrategy\LifetimeCacheStrategy
    php_fast_cache.twig_cache_provider.class: phpFastCache\Bundle\Twig\CacheExtension\CacheProvider\PsrCacheAdapter

services:
    phpfastcache:
        class: "%php_fast_cache.cache.class%"
        arguments:
            - "%phpfastcache%"
            - "@?debug.stopwatch"
    phpfastcache.human_readable_size:
        class: "%php_fast_cache.human_readable.class%"
        tags:
            - { name: twig.extension }
    phpfastcache.twig_cache_driver_provider:
        class: "%php_fast_cache.cache.class%"
        factory: [ "@phpfastcache", "getTwigCacheInstance" ]
    phpfastcache.twig_cache_provider:
        class: "%php_fast_cache.twig_cache_provider.class%"
        arguments:
             - "@phpfastcache.twig_cache_driver_provider"
    phpfastcache.twig_cache_stategy:
        class: "%php_fast_cache.twig_cache_stategy.class%"
        arguments:
            - "@phpfastcache.twig_cache_provider"
            - "@?phpfastcache.request_collector"
            - "%phpfastcache%"
    twig.extension.cache:
        class: "%php_fast_cache.twig_cache.class%"
        arguments:
          - "@phpfastcache.twig_cache_stategy"
        tags:
         - { name: twig.extension }