-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Finished #3886 #4237
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
Finished #3886 #4237
Conversation
@wouterj I want to make sure I get this merge correct: this should apply to only the 2.3 branch, correct? And so when this merges into 2.4, we'll need to revert it there. |
@@ -83,7 +83,7 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the | |||
.. sidebar:: ``FormEvents::PRE_SET_DATA`` in the Form component | |||
|
|||
The ``collection`` form type relies on the | |||
:class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener` | |||
``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is wrong. The ResizeFormListener
is present in 2.3: https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php
@@ -152,10 +152,10 @@ It can be used to: | |||
|
|||
.. sidebar:: ``FormEvents::PRE_SUBMIT`` in the Form component | |||
|
|||
The :class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TrimListener` | |||
The ``Symfony\Component\Form\Extension\Core\EventListener\TrimListener`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weaverryan That's right. The |
@xabbuh I decided to remove all class directives in the sidebar, to be consistent and they don |
@wouterj I understand your concerns. Though having fully qualified class names rendered in the documentation looks pretty ugly to me. That's why I'd prefer the |
@xabbuh tbh, I don't like to use the I think we should make a new directive which does only that, without the link. |
Of course, building such a directive should be very easy since we could reuse most of the code from the |
@xabbuh let's take this case as an example. The class shows as an implementation example of the listener for a specific event. I don't care what the signature of the class is (in fact, everyone with a basic event system knowledge knows that it has a |
I agree. In this case, we're saying "hey, look at this core code so you can learn from it!" - so in this case, the API docs don't help (and like Wouter said, a link to the GH source code if anything would be appropriate - perhaps having an extension to make this link with the proper version would be nice). Anyways, I'm +1 for what we've done here, and in general, we'll just be thoughtful whenever we have a class :). |
Replaces #3886