X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/f414da492f983455e1db3f9e89f8cb12a8a1ed8b..060aa4e7dd4d917cd58bd026b4a0892d3416048c:/Subscriber/FacebookSubscriber.php?ds=inline diff --git a/Subscriber/FacebookSubscriber.php b/Subscriber/FacebookSubscriber.php index c87b19a..af4eb0f 100644 --- a/Subscriber/FacebookSubscriber.php +++ b/Subscriber/FacebookSubscriber.php @@ -20,24 +20,13 @@ use Symfony\Component\Routing\RouterInterface; * {@inheritdoc} */ class FacebookSubscriber implements EventSubscriberInterface { - ///Supported locales array - private $locales; - - ///Router instance - private $router; - /* * Inject router interface and locales * * @param RouterInterface $router The router instance * @param array $locales The supported locales */ - public function __construct(RouterInterface $router, array $locales) { - //Set locales - $this->locales = $locales; - - //Set router - $this->router = $router; + public function __construct(protected RouterInterface $router, protected array $locales) { } /**