2 Commits
1.0.3 ... 1.0.5

Author SHA1 Message Date
Gregory Letellier
de03a1f215 renaming package 2023-11-20 10:02:06 +01:00
Gregory Letellier
01e9fd2de3 fix export des config 2023-11-15 09:27:27 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{ {
"name": "greg/framework", "name": "kletellier/framework",
"description": "Mini MVC component", "description": "Mini MVC component",
"type": "project", "type": "project",
"license": "MIT", "license": "MIT",

View File

@@ -20,7 +20,7 @@ class Config
if (isset($this->container["DEBUG"])) { if (isset($this->container["DEBUG"])) {
if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) { if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) {
// production app cache not created // production app cache not created
$str = "<?php return " . json_encode(array_values($this->container)) . "; ?>"; $str = "<?php return " . var_export($this->container, true) . "; ?>";
file_put_contents($this->cachepath, $str); file_put_contents($this->cachepath, $str);
} }
} }