8000 Minor fixes about bundle overridding by javiereguiluz · Pull Request #7490 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Minor fixes about bundle overridding #7490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 15, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reworded the section about form overridding
  • Loading branch information
javiereguiluz committed Feb 14, 2017
commit d5cd8d0e35250acd7acb83b040447912c9e96155
10 changes: 1 addition & 9 deletions bundles/override.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,7 @@ associations. Learn more about this feature and its limitations in
Forms
-----

Form types are referred to by their fully-qualified class name::

$builder->add('name', CustomType::class);

This means that you cannot override this by creating a sub-class of ``CustomType``
and registering it as a service and tagging it with ``form.type`` (you *could*
do this in an earlier version).

Instead, you should use a "form type extension" to modify the existing form type.
Existing form types can be modified defining "form type extensions".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose: "form type extensions" -> *form type extensions*

For more information, see :doc:`/form/create_form_type_extension`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


.. _override-validation:
Expand Down
0