Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DI] Mark generated containers as final#21263
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
keradus commentedJan 12, 2017
http://symfony.com/doc/current/contributing/code/bc.html#changing-classes Type of Change |Change Allowed It's only annotation, but when one will remove protected property in 3.4 because he see that annotation he will think it's not a bc breaker. Then, even if this even if class will be deprecated a BC should not be broken. |
nicolas-grekas commentedJan 12, 2017
We need ways to move forward with the code base. What would you suggest to allow this kind of moves? (See#20493 also) |
linaori commentedJan 13, 2017
@keradus it doesn't mention anything about generated classes. To be fair, you should probably not be extending generated code in the first place. |
dunglas commentedJan 13, 2017
👍 |
| * This class has been auto-generated | ||
| * by the Symfony Dependency Injection Component. | ||
| * | ||
| * @final since Symfony 3.3 |
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.
Should we add a dot at the end to be consistent with@deprecated? (Note that#20493 supports both syntaxes)
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.
As far as#20493 is concerned, this shouldn't matter to me as DebugClassLoader should be able to deal with both situations. :)
xabbuh commentedJan 15, 2017
I do not understand your comment. The class will not be |
xabbuh commentedJan 15, 2017
👍 Status: Reviewed |
nicolas-grekas commentedJan 15, 2017
@xabbuh this comment was done before "since Symfony 3.3" was added; it's true that without this, it would have been too easy to wrongly believe that some class could be changed later on (say 3.4) while it weren't yet possible. |
fabpot commentedJan 15, 2017
Thank you@nicolas-grekas. |
keradus commentedJan 15, 2017
@iltar , the thing was that not everyone will check if the class was autogenerated and if so, consider could he rely on it or not. better to be protective and prevent for that, right ? :) 👍 for PR |
This PR was merged into the 3.3-dev branch.Discussion----------[DI] Mark generated containers as final| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | yes| Tests pass? | no| Fixed tickets | -| License | MIT| Doc PR | -So that we don't have to care anymore about BC for protected methods in generated containers.Will leverage deprecations triggered in#20493Commits-------ce0ee1e [DI] Mark generated containers as final
Uh oh!
There was an error while loading.Please reload this page.
So that we don't have to care anymore about BC for protected methods in generated containers.
Will leverage deprecations triggered in#20493