We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ed5c8 commit 3b71ac6Copy full SHA for 3b71ac6
src/Container.php
@@ -71,6 +71,13 @@ public function addLoaderClass(object $object):void {
71
* @return null|T
72
*/
73
public function get(string $id):mixed {
74
+// This first "has" check is temporary, while all repositories switch from Gt to GT.
75
+ if(!$this->has($id)) {
76
+ if(str_starts_with($id, "GT\\")
77
+ && !str_starts_with($id, "GT\\Website\\")) {
78
+ $id = preg_replace('/^GT\\\/', "Gt\\", $id);
79
+ }
80
81
if(!$this->has($id)) {
82
throw new ServiceNotFoundException($id);
83
}
0 commit comments