diff --git a/forum-project/config.php b/forum-project/config.php index b8e55ef..98df4b4 100644 --- a/forum-project/config.php +++ b/forum-project/config.php @@ -7,7 +7,7 @@ require_once __DIR__ . '/vendor/autoload.php'; use Aws\S3\S3Client; -// ✅ Connexion PDO + try { $pdo = new PDO( 'mysql:host=mysql;dbname=forum_database;charset=utf8mb4', @@ -22,7 +22,7 @@ try { die("Erreur de connexion MySQL : " . $e->getMessage()); } -// ✅ Client MinIO + $s3Client = new S3Client([ 'version' => 'latest', 'region' => 'us-east-1',