[Form] Remove a legacy article

This commit is contained in:
Javier Eguiluz
2024-09-26 11:11:38 +02:00
parent 317140cd16
commit 411cd509e0
3 changed files with 1 additions and 13 deletions

View File

@@ -570,3 +570,4 @@
/components/string /string
/testing/http_authentication /testing#testing_logging_in_users
/doctrine/registration_form /security#security-make-registration-form
/form/form_dependencies /form/create_custom_field_type

View File

@@ -1,12 +0,0 @@
How to Access Services or Config from Inside a Form
===================================================
The content of this article is no longer relevant because in current Symfony
versions, form classes are services by default and you can inject services in
them using the :doc:`service autowiring </service_container/autowiring>` feature.
Read the article about :doc:`creating custom form types </form/create_custom_field_type>`
to see an example of how to inject the database service into a form type. In the
same article you can also read about
:ref:`configuration options for form types <form-type-config-options>`, which is
another way of passing services to forms.

View File

@@ -964,7 +964,6 @@ Advanced Features:
/controller/upload_file
/security/csrf
/form/form_dependencies
/form/create_custom_field_type
/form/data_transformers
/form/data_mappers