From 962c74500e203529f612554e59b6d5f31ffc855c Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Thu, 23 Apr 2026 00:57:04 +0000 Subject: [PATCH] a --- Cron/Configuration.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Cron/Configuration.php b/Cron/Configuration.php index edbc22c..65cfdf5 100755 --- a/Cron/Configuration.php +++ b/Cron/Configuration.php @@ -13,6 +13,7 @@ class Configuration } return $valeur; } + /* private static function getParametres() { if (self::$parametres == null) { @@ -29,4 +30,19 @@ class Configuration } return self::$parametres; } + */ + private static function getParametres() + { + if (self::$parametres == null) { + $cheminFichier = "/var/www/Config/prod.ini"; + if (!file_exists($cheminFichier)) { + throw new Exception("Aucun fichier de configuration trouvé"); + } + else { + self::$parametres = parse_ini_file($cheminFichier); + } + } + return self::$parametres; + } + } \ No newline at end of file