imports:
    # twig aliases are only imported if this file is loaded
    - { resource: templating_twig_aliases.yml }

services:
    _defaults:
        autowire: true
        autoconfigure: true
        public: false

    # public alias to Twig engine
    pimcore.templating.engine.twig:
        alias: templating.engine.twig
        public: true

    Pimcore\Twig\Extension\HelpersExtension: ~

    Pimcore\Twig\Extension\DocumentTagExtension: ~

    Pimcore\Twig\Extension\SubrequestExtension: ~

    Pimcore\Twig\Extension\PimcoreObjectExtension: ~

    Pimcore\Twig\Extension\TemplatingHelperExtension:
        arguments:
            $phpEngine: '@templating.engine.php'

    Pimcore\Twig\Extension\NavigationExtension: ~

    Pimcore\Twig\Extension\GlossaryExtension: ~

    Pimcore\Twig\Extension\WebsiteConfigExtension: ~

    # the deferred extension is needed for placeholder helpers to work
    # as otherwise the placeholder block would be rendered before any
    # content was added (e.g. headTitle)
    Phive\Twig\Extensions\Deferred\DeferredExtension: ~
