Added Preorder API EP getCifData; added cifcableurl to preorder

This commit is contained in:
Frank Schubert
2023-12-04 13:04:00 +01:00
parent 1e7a5e12a4
commit 4b678b580d
8 changed files with 195 additions and 32 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace thetool\Api\Modules;
class ApiControllerModule {
protected $log;
private $dependencies = [];
public function __construct($dependencies = null) {
$this->log = \mfLoghandler::singleton();
if(is_array($dependencies) && count($dependencies)) {
foreach($dependencies as $name => $dep) {
$this->$name = $dep;
}
}
if(method_exists($this, "init")) {
$this->init();
}
}
public function __get($name) {
if(array_key_exists($name, $this->dependencies)) {
return $this->dependencies[$name];
}
return null;
}
public function __set($name, $value) {
$this->dependencies[$name] = $value;
return true;
}
}