From 41b8bb0acc088dceb353a1d975b3e5f0ed402d5b Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 7 Feb 2025 14:05:08 +0200 Subject: [PATCH] config services --- application/Espo/Binding.php | 10 ++++++++++ .../Espo/Resources/metadata/app/containerServices.json | 6 ++++++ 2 files changed, 16 insertions(+) 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" } }