From 4abe7447bddc3101a74e9236e8690631598189bc Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 7 May 2019 14:30:44 +0200 Subject: [PATCH] Added Module Config Handler --- src/DeltaCMS/Module/Config/Config.php | 51 +++++++++++++++++++ .../Module/Config/ConfigInterface.php | 2 + 2 files changed, 53 insertions(+) create mode 100644 src/DeltaCMS/Module/Config/Config.php diff --git a/src/DeltaCMS/Module/Config/Config.php b/src/DeltaCMS/Module/Config/Config.php new file mode 100644 index 0000000..c1dedd4 --- /dev/null +++ b/src/DeltaCMS/Module/Config/Config.php @@ -0,0 +1,51 @@ +routes = $config->getRoutes(); + $this->templateFolder = $config->getTemplateFolder(); + } + } + + private $routes = array(); + private $templateFolder = ""; + private $forms = array(); + + public function getRoutes(): array + { + return $this->routes; + } + + public function setRoutes(array $routes) + { + $this->routes = $routes; + } + + public function getTemplateFolder(): string + { + return $this->templateFolder; + } + + + public function setTemplateFolder(string $folder) + { + $this->templateFolder = $folder; + } + + public function getForms(): array + { + return $this->forms; + } + + public function setForms(array $forms) + { + $this->forms = $forms; + } +} diff --git a/src/DeltaCMS/Module/Config/ConfigInterface.php b/src/DeltaCMS/Module/Config/ConfigInterface.php index e1fa2ec..59239fe 100644 --- a/src/DeltaCMS/Module/Config/ConfigInterface.php +++ b/src/DeltaCMS/Module/Config/ConfigInterface.php @@ -7,4 +7,6 @@ interface ConfigInterface public function getRoutes(): array; public function getTemplateFolder(): string; + + public function getForms(): array; }