From: Raphaƫl Gertz Date: Tue, 27 Feb 2024 13:15:29 +0000 (+0100) Subject: Php 8.x constructor style X-Git-Tag: 0.4.0~34 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/7147766cba7c940cba95c8028b14d02846b055fa?ds=sidebyside;hp=7b065b7bc56a349a0e70f455ec90a91faea8acf9 Php 8.x constructor style --- 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; } /**