]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Context/RequestStackContext.php
Fix symfony 5.3 deprecation
[packbundle] / Context / RequestStackContext.php
index 0421de7d96a352a4dcebd3202d7fd1400e343ea7..343affdacc9b847a004928e0c785cec6f2198359 100644 (file)
@@ -45,7 +45,7 @@ class RequestStackContext extends BaseRequestStackContext {
         */
        public function getBaseUrl(): string {
                //Without request
         */
        public function getBaseUrl(): string {
                //Without request
-               if (!$request = $this->requestStack->getMasterRequest()) {
+               if (!$request = $this->requestStack->getMainRequest()) {
                        //Return base path
                        return $this->basePath;
                }
                        //Return base path
                        return $this->basePath;
                }