summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-03-06 11:45:31 +0100
committerDaniel Weipert <code@drogueronin.de>2022-03-06 11:45:31 +0100
commit1334236bb6059b2302a760196ce7885df379e984 (patch)
treef86e883e6ae9510454307f38be3ffd20aefa6c4c /public
parentad83d1dafac62bb28fda004f86129319a5c3e2ca (diff)
toml to yaml
Diffstat (limited to 'public')
-rw-r--r--public/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/public/index.php b/public/index.php
index 96332f7..afa0afa 100644
--- a/public/index.php
+++ b/public/index.php
@@ -3,7 +3,7 @@
use FlatFileForms\App;
use FlatFileForms\PluginLoader;
use FlatFileForms\PreLoader;
-use Yosymfony\Toml\Toml;
+use Symfony\Component\Yaml\Yaml;
require_once dirname(__DIR__) . '/vendor/autoload.php';
@@ -14,7 +14,7 @@ function findAppConfigFile(string $path): string
{
$currentDirectory = $path;
while ($currentDirectory !== '/') {
- $configFile = $currentDirectory . '/config.toml';
+ $configFile = $currentDirectory . '/config.yaml';
if (file_exists($configFile)) {
return $configFile;
}
@@ -22,12 +22,12 @@ function findAppConfigFile(string $path): string
$currentDirectory = dirname($currentDirectory);
}
- die('config.toml missing');
+ die('config.yaml missing');
}
// find and parse config
$configFile = findAppConfigFile(dirname(__DIR__));
-$config = Toml::parseFile($configFile);
+$config = Yaml::parseFile($configFile);
// prepare possibly relative folder paths
chdir(dirname($configFile));