form_csrf.xml 1.3 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. <services>
  6. <service id="form.csrf_provider" class="Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfTokenManagerAdapter">
  7. <argument type="service" id="security.csrf.token_manager" />
  8. <deprecated>The "%service_id%" service is deprecated since Symfony 2.4 and will be removed in 3.0. Use the "security.csrf.token_manager" service instead.</deprecated>
  9. </service>
  10. <service id="form.type_extension.csrf" class="Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension">
  11. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
  12. <argument type="service" id="security.csrf.token_manager" />
  13. <argument>%form.type_extension.csrf.enabled%</argument>
  14. <argument>%form.type_extension.csrf.field_name%</argument>
  15. <argument type="service" id="translator.default" />
  16. <argument>%validator.translation_domain%</argument>
  17. <argument type="service" id="form.server_params" />
  18. </service>
  19. </services>
  20. </container>