templating_twig.xml 1.1 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="twig.extension.logout_url.class">Symfony\Bridge\Twig\Extension\LogoutUrlExtension</parameter>
  7. <parameter key="twig.extension.security.class">Symfony\Bridge\Twig\Extension\SecurityExtension</parameter>
  8. </parameters>
  9. <services>
  10. <service id="twig.extension.logout_url" class="%twig.extension.logout_url.class%" public="false">
  11. <tag name="twig.extension" />
  12. <argument type="service" id="security.logout_url_generator" />
  13. </service>
  14. <service id="twig.extension.security" class="%twig.extension.security.class%" public="false">
  15. <tag name="twig.extension" />
  16. <argument type="service" id="security.authorization_checker" on-invalid="ignore" />
  17. </service>
  18. </services>
  19. </container>