mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
[Form] Remove a legacy article
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user