]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Subscriber/FacebookSubscriber.php
Rename routes config to match new bundle alias
[packbundle] / Subscriber / FacebookSubscriber.php
index c87b19aa1d649f4cffcff288ab101f3d99713fee..af4eb0f5fc2e80f54314a6174bc6ef48c3b28ab0 100644 (file)
@@ -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) {
        }
 
        /**