-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add best practice about the Form type namespace #6059
Conversation
I have "strongly mixed feelings":
For now I'm completely divided 😕 |
I particularly agree about the second point. I'll add that we're most of the time unlikely to predict what will be in the In my experience, as @javiereguiluz pointed out, it's way simpler to deal with the extended To me, the same applies to security voters, auth providers, tokens, etc, but it was changed to keep consistency over the |
If we recommended that people put things directly on Like I said with voters, there is a cost to making people create a directory just to hold one other directory. Since form "types" are by far the most important and common thing in a 👍 |
This PR was merged into the 2.3 branch. Discussion ---------- Add best practice about the Form type namespace | Q | A | --- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | - /cc @javiereguiluz @weaverryan as you are the main guys behind this guide. Commits ------- 0275bef Add best practice about the Form type namespace
I agree with Wouter and Ryan. Please also remember that these best practices are simply guidelines which you do not have to follow. I bet that a lot of development teams out there have there own best practices which differ from what we have in the docs. And that is totally fine if that better fits your needs. But having some guidelines makes it easier for newcomers to structure their application and write good and maintable code (and you will very likely not start developing big applications right from the beginning). |
Hello. I'm sorry to reactive this issue/PR/Thread, but I think it's not a food idea to mix Type & Other thing (Extention, EventListener, DataTransformer) in the same folder. Yes we could create a dedicated folder for "other things" but that's weird. I really agree with @ogizanagi and @javiereguiluz here. We could say it's not a big deal, but the MakerBundle uses theses best practices to generate code. |
/cc @javiereguiluz @weaverryan as you are the main guys behind this guide.