From 1334236bb6059b2302a760196ce7885df379e984 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 6 Mar 2022 11:45:31 +0100 Subject: toml to yaml --- public/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'public') 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)); -- cgit v1.2.3