We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceaf1fa commit d343900Copy full SHA for d343900
1 file changed
src/Initializer.php
@@ -30,12 +30,19 @@
30
class Initializer
31
{
32
33
+ private static bool $initialized = false;
34
+
35
/**
36
* @param $config
37
* @return void
38
*/
39
public static function init($config): void
40
41
+ if (self::$initialized) {
42
+ return;
43
+ }
44
+ self::$initialized = true;
45
46
$connections = $config['connections'] ?? [];
47
if (!$connections) {
48
return;
0 commit comments