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