-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[HttpKernel] fix kernel.name deprecation #28888
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,6 +276,8 @@ public function locateResource($name, $dir = null, $first = true) | |
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @deprecated since Symfony 4.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's be even more explicit and duplicate this info from the interface |
||
*/ | ||
public function getName(/* $triggerDeprecation = true */) | ||
{ | ||
|
@@ -440,7 +442,7 @@ protected function build(ContainerBuilder $container) | |
*/ | ||
protected function getContainerClass() | ||
{ | ||
return str_replace('\\', '_', \get_class($this)).ucfirst($this->environment).($this->debug ? 'Debug' : '').'Container'; | ||
return $this->name.str_replace('\\', '_', \get_class($this)).ucfirst($this->environment).($this->debug ? 'Debug' : '').'Container'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keeping the |
||
} | ||
|
||
/** | ||
|
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.
kernel.container_class already embeds the entropy from kernel.environment and kernel.debug