File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/Symfony/Bundle/SecurityBundle Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,11 @@ public function __invoke(): RouteCollection
37
37
$ routeName = '_logout_ ' .$ firewallName ;
38
38
39
39
if (isset ($ routeNames [$ logoutPath ])) {
40
- $ collection ->addAlias ($ routeNames [$ logoutPath ], $ routeName );
40
+ $ collection ->addAlias ($ routeName , $ routeNames [$ logoutPath ]);
41
41
} else {
42
42
$ routeNames [$ logoutPath ] = $ routeName ;
43
+ $ collection ->add ($ routeName , new Route ($ logoutPath ));
43
44
}
44
-
45
- $ collection ->add ($ routeName , new Route ($ logoutPath ));
46
45
}
47
46
48
47
return $ collection ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function testLoad()
33
33
self ::assertCount (1 , $ collection );
34
34
self ::assertEquals (new Route ('/logout ' ), $ collection ->get ('_logout_main ' ));
35
35
self ::assertCount (1 , $ collection ->getAliases ());
36
- self ::assertEquals ('_logout_admin ' , $ collection ->getAlias ('_logout_main ' )->getId ());
36
+ self ::assertEquals ('_logout_main ' , $ collection ->getAlias ('_logout_admin ' )->getId ());
37
37
38
38
$ resources = $ collection ->getResources ();
39
39
self ::assertCount (1 , $ resources );
You can’t perform that action at this time.
0 commit comments