-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Standardize the name of the container configurator variable #17381
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
Comments
Imho, this is just a matter of "pick one and stick to it". Since I don't really have any favor, I would chose the one used in the Service Container guide at the moment: |
My personal experience: Whenever I use some sort of abbreviation in a variable name myself, I'm eventually going to expand it in the next round... And since there's probably a reason why the very class wasn't named Just for reference: This is the PR you had in mind: #17134 |
I vote for 3: This avoid question naming, it's always class name. |
I like it too @alamirault 👍🏻 I can create a doctor rule to ensure this |
I can update rst files. Which branch must be targeted ? 6.3 ? |
The lowest one, 5.4, then we merge up and you can checke 6.0 and so on... Thanks for your work ✊🏻 |
@javiereguiluz @weaverryan @xabbuh @wouterj please vote, thanks |
I do not have any strong feeling about this, but |
I created PR #17664 to move forward, let's see if you like it or not 😄 |
…ble (alamirault) This PR was merged into the 5.4 branch. Discussion ---------- Standardize the name of the container configurator variable #17381 Use always `ContainerConfigurator $containerConfigurator` instead of `$container` or `$configurator` Commits ------- a9cbf8b Standardize the name of the container configurator variable
I think this issue was mentioned by @ThomasLandauer in the past, and I was sure that we already had fixed it ... but I was wrong 😞
We use different variable names for similar code examples:
(3)
is very rarely used, but(1)
and(2)
are used about the same ~50%.So, which is your preferred variable name so we can always use the same for all code examples? Thanks!
The text was updated successfully, but these errors were encountered: