X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/f414da492f983455e1db3f9e89f8cb12a8a1ed8b..f20e37360674d48c164ad95ce0105d7f5f5014ef:/Subscriber/FacebookSubscriber.php 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) { } /**