- Work done on the kinda-micro-framework to allow smoother deployment
This commit is contained in:
1 parent
f719246624
commit
aba9a65a3c
14 files changed
+357
-12
No files matched your search
@@ -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'];
|
||||
|
||||
Reference in new issue
Block a user