8000 minor #14036 [SecurityBundle] Fix typos in LogoutUrlHelper (stloyd) · symfony/symfony@6f3c6b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f3c6b4

Browse files
committed
minor #14036 [SecurityBundle] Fix typos in LogoutUrlHelper (stloyd)
This PR was merged into the 2.7 branch. Discussion ---------- [SecurityBundle] Fix typos in LogoutUrlHelper | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tests pass? | yes | Fixed tickets | #14035 | License | MIT Commits ------- 156cda6 [SecurityBundle] Fix typos in LogoutUrlHelper
2 parents 4a38eb4 + 156cda6 commit 6f3c6b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Templating/Helper/LogoutUrlHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public function __construct($generator, UrlGeneratorInterface $router = null, To
4444
if ($generator instanceof ContainerInterface) {
4545
trigger_error('The '.__CLASS__.' constructor will require a LogoutUrlGenerator instead of a ContainerInterface instance in 3.0.', E_USER_DEPRECATED);
4646

47-
if ($container->has('security.logout_url_generator')) {
48-
$this->generator = $container->get('security.logout_url_generator');
47+
if ($generator->has('security.logout_url_generator')) {
48+
$this->generator = $generator->get('security.logout_url_generator');
4949
} else {
50-
$this->generator = new LogoutUrlGenerator($container->get('request_stack'), $router, $tokenStorage);
50+
$this->generator = new LogoutUrlGenerator($generator->get('request_stack'), $router, $tokenStorage);
5151
}
5252
} else {
5353
$this->generator = $generator;

0 commit comments

Comments
 (0)
0