]> Raphaël G. Git Repositories - packbundle/commitdiff
Fix symfony 5.3 deprecation
authorRaphaël Gertz <git@rapsys.eu>
Wed, 15 Sep 2021 14:45:15 +0000 (16:45 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 15 Sep 2021 14:45:15 +0000 (16:45 +0200)
Context/RequestStackContext.php

index 0421de7d96a352a4dcebd3202d7fd1400e343ea7..343affdacc9b847a004928e0c785cec6f2198359 100644 (file)
@@ -45,7 +45,7 @@ class RequestStackContext extends BaseRequestStackContext {
         */
        public function getBaseUrl(): string {
                //Without request
-               if (!$request = $this->requestStack->getMasterRequest()) {
+               if (!$request = $this->requestStack->getMainRequest()) {
                        //Return base path
                        return $this->basePath;
                }