From 7147766cba7c940cba95c8028b14d02846b055fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 27 Feb 2024 14:15:29 +0100 Subject: [PATCH] Php 8.x constructor style --- Listener/LogoutListener.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Listener/LogoutListener.php b/Listener/LogoutListener.php index 304f123..888d670 100644 --- a/Listener/LogoutListener.php +++ b/Listener/LogoutListener.php @@ -34,26 +34,15 @@ class LogoutListener implements EventSubscriberInterface { */ protected $config; - /** - * Target url - */ - private $targetUrl; - /** * {@inheritdoc} * * @xxx Second argument will be replaced by security.firewalls.main.logout.target * @see vendor/symfony/security-bundle/Resources/config/security_listeners.php +79 */ - public function __construct(ContainerInterface $container, string $targetUrl, RouterInterface $router) { + public function __construct(protected ContainerInterface $container, protected string $targetUrl, protected RouterInterface $router) { //Set config $this->config = $container->getParameter(RapsysUserBundle::getAlias()); - - //Set target url - $this->targetUrl = $targetUrl; - - //Set router - $this->router = $router; } /** -- 2.41.1