-
-
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
Deprecate CRUDController::configure() method #6751
Conversation
public function setContainer(?ContainerInterface $container = null) | ||
{ | ||
$this->container = $container; | ||
|
||
$this->configure(); | ||
$this->configure('sonata_deprecation_mute'); |
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.
why not call the new configureAdmin
method here? then no need to mute the deprecation, or?
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.
In case someone override $this->configure
maybe ?
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.
ah maybe people have overwritten the configure
method 😢 forget it.
7e3276c
to
433fdd2
Compare
Could you please rebase your PR and fix merge conflicts? |
In next major version, the controller will be configured with an external call from an event listener instead of using setContainer method.
433fdd2
to
23627f1
Compare
Thanks @franmomu |
Subject
In next major version, the controller will be configured with an external call from an event listener instead of using setContainer method.
For more context: #6615
I am targeting this branch, because this is BC.
Changelog