From 9b3a6b1f3af0a97b6574ed3b9a885aefba974966 Mon Sep 17 00:00:00 2001 From: tracer Date: Fri, 21 Oct 2022 14:48:56 +0200 Subject: [PATCH] initial commit --- src/Service/Config.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/Service/Config.php diff --git a/src/Service/Config.php b/src/Service/Config.php new file mode 100644 index 0000000..d750d36 --- /dev/null +++ b/src/Service/Config.php @@ -0,0 +1,40 @@ +config = json_decode(json: $configJSON, associative: true); + } + + public function getConfig(string $configKey): string + { + return $this->config[$configKey]; + } +} \ No newline at end of file