- Work done on the kinda-micro-framework to allow smoother deployment

This commit is contained in:
mcndave committed 2022-11-29 19:53:41 +00:00
1 parent f719246624
commit aba9a65a3c
14 files changed
+357 -12

No files matched your search

+10
View File
@@ -6,6 +6,8 @@ namespace Lean;
class Application
{
public string $name;
public string $piceaContext;
public array $piceaExtensions;
@@ -22,8 +24,16 @@ class Application
public array $tellPhp;
public array $data = [];
public function __construct(string $name) {
$this->name = $name;
}
public function fromArray(array $data) : self
{
$this->data = array_replace($this->data, $data);
if (is_array($picea = $data['picea'] ?? false)) {
if ($picea['context'] ?? false ) {
$this->piceaContext = $picea['context'];