]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Context/RequestStackContext.php
Add configurable separator to slug member function
[packbundle] / Context / RequestStackContext.php
index 343affdacc9b847a004928e0c785cec6f2198359..366e167c15f28581f154b2910e83622c99380973 100644 (file)
@@ -18,24 +18,12 @@ use Symfony\Component\HttpFoundation\RequestStack;
  * {@inheritdoc}
  */
 class RequestStackContext extends BaseRequestStackContext {
-       //RequestStack instance
-       private $requestStack;
-
-       //Base path
-       private $basePath;
-
        /**
         * {@inheritdoc}
         */
-       public function __construct(RequestStack $requestStack, string $basePath = '', bool $secure = false) {
+       public function __construct(protected RequestStack $requestStack, protected string $basePath = '', protected bool $secure = false) {
                //Call parent constructor
                parent::__construct($requestStack, $basePath, $secure);
-
-               //Set request stack
-               $this->requestStack = $requestStack;
-
-               //Set base path
-               $this->basePath = $basePath;
        }
 
        /**