From c681f88de4ca6342ed12870ee8dd24aa22265fe2 Mon Sep 17 00:00:00 2001 From: User Date: Fri, 18 Aug 2023 01:42:24 +0300 Subject: [PATCH] 20230818#1 --- src/App.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/App.php b/src/App.php index 5fa60e9..3d4e50c 100644 --- a/src/App.php +++ b/src/App.php @@ -157,11 +157,6 @@ class App extends Main { if(is_file($this->baseDir."/".getenv("APP_NODES_FILE"))){ $nodes = include_once $this->baseDir."/".getenv("APP_NODES_FILE"); } - for ($appNodeNum = 1; getenv("APP_NODE".$appNodeNum); $appNodeNum++){ - $nodesCollection[] = json_decode(getenv("APP_NODE".$appNodeNum), true); - } - if(isset($nodesCollection)) $nodes = $nodesCollection; - if(empty($nodes) || !is_array($nodes)) throw AppException::emptyAppNodes(); $this->getActions($nodes); } @@ -192,9 +187,6 @@ class App extends Main { if(pathinfo($this->baseDir."/".$appNode['router'])['extension'] == "php") { $this->router->withRules(include_once $this->baseDir."/".$appNode['router']); } - elseif(pathinfo($this->baseDir."/".$appNode['router'])['extension'] == "json") { - $this->router->withRules(json_decode(file_get_contents($this->baseDir."/".$appNode['router']), true)); - } elseif(pathinfo($this->baseDir."/".$appNode['router'])['extension'] == "yaml") { $this->router->withRules(yaml_parse_file($this->baseDir."/".$appNode['router'])); }