Skip to content

Commit

Permalink
Avoid dots in generated class names.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jan 17, 2019
1 parent e03db43 commit a8875a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ protected function build(ContainerBuilder $container)
protected function getContainerClass()
{
$class = \get_class($this);
$class = 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0") ? get_parent_class($class).ContainerBuilder::hash($class) : $class;
$class = 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0")
? get_parent_class($class).str_replace('.', '_', ContainerBuilder::hash($class))
: $class;

return $this->name.str_replace('\\', '_', $class).ucfirst($this->environment).($this->debug ? 'Debug' : '').'Container';
}
Expand Down

0 comments on commit a8875a5

Please sign in to comment.