services:
    _defaults:
        autowire: true
        autoconfigure: true

    Becklyn\RouteTreeBundle\:
        resource: '../../{Builder,Cache,KnpMenu,Node,PostProcessing,Tree,Twig}/*'

    Becklyn\RouteTreeBundle\Cache\TreeCache:
        $debug: '%kernel.debug%'

    Becklyn\RouteTreeBundle\Node\Security\SecurityInferHelper:
        $container: '@service_container'

    Becklyn\RouteTreeBundle\PostProcessing\Processor\Security\SecurityChecker:
        $trustResolver: '@security.authentication.trust_resolver'

    Becklyn\RouteTreeBundle\KnpMenu\Renderer\SimpleTwigRenderer:
        tags:
            - { name: knp_menu.renderer, alias: route_tree }

    Becklyn\RouteTreeBundle\Twig\RouteTreeTwigExtension:
        $knpHelper: '@knp_menu.helper'

services:
    _defaults:
        autowire: true
        autoconfigure: true

    Becklyn\RouteTreeBundle\:
        resource: '../../{Builder,Cache,KnpMenu,Node,PostProcessing,Tree,Twig}/*'

    Becklyn\RouteTreeBundle\Cache\TreeCache:
        $debug: '%kernel.debug%'

    Becklyn\RouteTreeBundle\Node\Security\SecurityInferHelper:
        $container: '@service_container'

    Becklyn\RouteTreeBundle\PostProcessing\Processor\Security\SecurityChecker:
        $trustResolver: '@security.authentication.trust_resolver'

    Becklyn\RouteTreeBundle\KnpMenu\Renderer\SimpleTwigRenderer:
        tags:
            -   name: knp_menu.renderer
                alias: !php/const Becklyn\RouteTreeBundle\KnpMenu\Renderer\SimpleTwigRenderer::ALIAS

    Becklyn\RouteTreeBundle\Twig\RouteTreeTwigExtension:
        $knpHelper: '@knp_menu.helper'

Use constant instead of inline definition
Use constant instead of inline definition
