twig.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  3. <parameters>
  4. <parameter key="sonata.admin.twig.extension.x_editable_type_mapping" type="collection">
  5. <parameter key="choice">select</parameter>
  6. <parameter key="boolean">select</parameter>
  7. <parameter key="text">text</parameter>
  8. <parameter key="textarea">textarea</parameter>
  9. <parameter key="html">textarea</parameter>
  10. <parameter key="email">email</parameter>
  11. <parameter key="string">text</parameter>
  12. <parameter key="smallint">text</parameter>
  13. <parameter key="bigint">text</parameter>
  14. <parameter key="integer">number</parameter>
  15. <parameter key="decimal">number</parameter>
  16. <parameter key="currency">number</parameter>
  17. <parameter key="percent">number</parameter>
  18. <parameter key="url">url</parameter>
  19. <parameter key="date">date</parameter>
  20. </parameter>
  21. </parameters>
  22. <services>
  23. <service id="sonata.admin.twig.extension" class="Sonata\AdminBundle\Twig\Extension\SonataAdminExtension">
  24. <tag name="twig.extension"/>
  25. <argument type="service" id="sonata.admin.pool"/>
  26. <argument type="service" id="logger" on-invalid="ignore"/>
  27. <argument type="service" id="translator"/>
  28. <call method="setXEditableTypeMapping">
  29. <argument>%sonata.admin.twig.extension.x_editable_type_mapping%</argument>
  30. </call>
  31. </service>
  32. </services>
  33. </container>