Skip to content

Mentioned that form related services can now be private #7823

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

Closed
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #7687.

defaults to ``0`` and controls the order in which the form
type extensions are loaded (the higher the priority, the earlier
an extension is loaded). This is useful when you need to guarantee
There is an optional tag attribute called ``priority``, which
Copy link
Contributor

Choose a reason for hiding this comment

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

CS fixes should be back ported in 2.7, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right. I've reverted all those changes to avoid conflicts. Thanks!

@@ -131,12 +131,16 @@ The ``extended_type`` key of the tag is the type of field that this extension sh
be applied to. In your case, as you want to extend the ``Symfony\Component\Form\Extension\Core\Type\FileType``
field type, you will use that as the ``extended_type``.

.. versionadded:: 3.3
Prior to Symfony 3.3, you needed to define form extension services as ``public``.
Copy link
Contributor

Choose a reason for hiding this comment

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

"[...] define type extension services [...]"

This is needed because there are also form extensions, but we do not register them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Form] Types, extensions and type guessers can now be private services
4 participants