X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/be90ff0448f23198efda2b575744cd160088b94d..0dacd7d23d5b201804a277284b15c6f5e47f99c3:/Listener/LogoutListener.php

diff --git a/Listener/LogoutListener.php b/Listener/LogoutListener.php
index 29b69e4..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/DependencyInjection/SecurityExtension.php +445
+	 * @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;
 	}
 
 	/**