We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 005cef0 + 5b80574 commit 30b02c6Copy full SHA for 30b02c6
1 file changed
system/Config/BaseService.php
@@ -66,6 +66,7 @@ class BaseService
66
/**
67
* Cache for instance of any services that
68
* have been requested as a "shared" instance.
69
+ * Keys should be lowercase service names.
70
*
71
* @var array
72
*/
@@ -106,6 +107,8 @@ class BaseService
106
107
108
protected static function getSharedInstance(string $key, ...$params)
109
{
110
+ $key = strtolower($key);
111
+
112
// Returns mock if exists
113
if (isset(static::$mocks[$key]))
114
0 commit comments