Skip to content

EspoCRM – Open Source CRM Application

config services

Yuri Kuznetsov41b8bb0acc08
diff --git a/application/Espo/Binding.php b/application/Espo/Binding.php
index fb1290e3c5..03df41f07a 100644
--- a/application/Espo/Binding.php
+++ b/application/Espo/Binding.php
@@ -232,6 +232,16 @@ class Binding implements BindingProcessor
'Espo\\Tools\\Stream\\Service',
'streamService'
);
+
+ $binder->bindService(
+ 'Espo\\Core\\Utils\\Config\\SystemConfig',
+ 'systemConfig'
+ );
+
+ $binder->bindService(
+ 'Espo\\Core\\Utils\\Config\\ApplicationConfig',
+ 'applicationConfig'
+ );
}
private function bindCore(Binder $binder): void
diff --git a/application/Espo/Resources/metadata/app/containerServices.json b/application/Espo/Resources/metadata/app/containerServices.json
index 1f3ec2c04e..6a025d282e 100644
--- a/application/Espo/Resources/metadata/app/containerServices.json
+++ b/application/Espo/Resources/metadata/app/containerServices.json
@@ -88,5 +88,11 @@
},
"streamService": {
"className": "Espo\\Tools\\Stream\\Service"
+ },
+ "systemConfig": {
+ "className": "Espo\\Core\\Utils\\Config\\SystemConfig"
+ },
+ "applicationConfig": {
+ "className": "Espo\\Core\\Utils\\Config\\ApplicationConfig"
}
}