We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe79f7 commit 21d8397Copy full SHA for 21d8397
3 files changed
system/Config/BaseService.php
@@ -203,6 +203,18 @@ public static function get(string $key): ?object
203
return static::$instances[$key] ?? static::__callStatic($key, []);
204
}
205
206
+ /**
207
+ * Checks if a service instance has been created.
208
+ *
209
+ * @param string $key Identifier of the entry to check.
210
211
+ * @return bool True if the service instance exists, false otherwise.
212
+ */
213
+ public static function has(string $key): bool
214
+ {
215
+ return isset(static::$instances[$key]);
216
+ }
217
+
218
/**
219
* Sets an entry.
220
*
user_guide_src/source/concepts/index.rst
@@ -14,4 +14,5 @@ The following pages describe the architectural concepts behind CodeIgniter4:
14
factories
15
http
16
security
17
+ worker_mode
18
goals
0 commit comments