-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Declare getNewInstance as final in favor of alterNewInstance #6850
Declare getNewInstance as final in favor of alterNewInstance #6850
Conversation
7375fa4
to
1fe94a9
Compare
1fe94a9
to
976f39c
Compare
IMHO |
He should override When the AbstractAdmin is calling an external service the best practice is to override the service and not the AbstractAdmin method. We promote this best practice by declaring the AbstractAdmin method as final. |
Well, in this specific case, we are not promoting best practices with I was thinking that maybe there is no need for |
Since our If you're doing
You'll losing the extension feature, the
Let's say one day we modify the What do you think about providing a protected |
Yeah, I meant if there was no need of |
Subject
I am targeting this branch, because BC.
There is an
alterNewInstance
for extensions, but not for theAbstractAdmin
.I think we should provide one instead of allowing to override
getNewInstance
.Changelog