Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6f3c6b4

Browse filesBrowse 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
Copy full SHA for 6f3c6b4

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Templating/Helper/LogoutUrlHelper.php
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.