From de2488b7a45f63e128a4f2f393e1040323837a62 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 25 Jun 2026 23:40:19 +0200 Subject: oups! --- bin/restore_db.php | 2 +- src/service/Backup.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/restore_db.php b/bin/restore_db.php index baa1e67..c54aaa9 100755 --- a/bin/restore_db.php +++ b/bin/restore_db.php @@ -15,7 +15,7 @@ if($argc === 2){ } } $file_name = pathinfo($argv[1])['basename']; - $file_data = '../' . file_get_contents($argv[1]); + $file_data = file_get_contents($argv[1]); } chdir(dirname(__FILE__)); // /chemin/absolu/bin/restore_db.php diff --git a/src/service/Backup.php b/src/service/Backup.php index 60d1b23..45593bb 100644 --- a/src/service/Backup.php +++ b/src/service/Backup.php @@ -156,6 +156,7 @@ class Backup } } + // pattern "template method" static public function restoreDatabase(EntityManager $entityManager, string $file_name): void { // création d'un backup de sécurité non écrasable -- cgit v1.2.3