Skip to content

Commit 7adab5a

Browse files
committed
fixed typos
1 parent 83b2e68 commit 7adab5a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Templating/Helper/LogoutUrlHelper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bundle\SecurityBundle\Templating\Helper;
1313

1414
use Symfony\Component\DependencyInjection\ContainerInterface;
15-
use Symfony\Component\HttpFoundation\RequestStack;
1615
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1716
use Symfony\Component\Security\Http\Logout\LogoutUrlGenerator;
1817
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
@@ -25,7 +24,7 @@
2524
*/
2625
class LogoutUrlHelper extends Helper
2726
{
28-
private $requestStack;
27+
private $generator;
2928
private $listeners = array();
3029
private $router;
3130
private $tokenStorage;
@@ -42,7 +41,7 @@ class LogoutUrlHelper extends Helper
4241
*/
4342
public function __construct($generator, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null)
4443
{
45-
if ($requestStack instanceof ContainerInterface) {
44+
if ($generator instanceof ContainerInterface) {
4645
trigger_error('The '.__CLASS__.' constructor will require a LogoutUrlGenerator instead of a ContainerInterface instance in 3.0.', E_USER_DEPRECATED);
4746

4847
if ($container->has('security.logout_url_generator')) {

0 commit comments

Comments
 (0)