diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-03-06 11:45:31 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2022-03-06 11:45:31 +0100 |
commit | 1334236bb6059b2302a760196ce7885df379e984 (patch) | |
tree | f86e883e6ae9510454307f38be3ffd20aefa6c4c /public/index.php | |
parent | ad83d1dafac62bb28fda004f86129319a5c3e2ca (diff) |
toml to yaml
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 8 |
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)); |