aboutsummaryrefslogtreecommitdiff
path: root/bin/restore_db.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/restore_db.php')
-rwxr-xr-xbin/restore_db.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/restore_db.php b/bin/restore_db.php
index c54aaa9..3fcddc1 100755
--- a/bin/restore_db.php
+++ b/bin/restore_db.php
@@ -4,6 +4,9 @@
4 4
5declare(strict_types=1); 5declare(strict_types=1);
6 6
7use App\Service\Config;
8use App\Service\Backup;
9
7if($argc === 2){ 10if($argc === 2){
8 if(pathinfo($argv[1])['extension'] !== 'sql'){ 11 if(pathinfo($argv[1])['extension'] !== 'sql'){
9 try{ 12 try{
@@ -21,7 +24,7 @@ if($argc === 2){
21chdir(dirname(__FILE__)); // /chemin/absolu/bin/restore_db.php 24chdir(dirname(__FILE__)); // /chemin/absolu/bin/restore_db.php
22require "../vendor/autoload.php"; 25require "../vendor/autoload.php";
23Config::load('../config/config.ini'); 26Config::load('../config/config.ini');
24require '../src/model/doctrine-bootstrap.php'; 27require '../src/Model/doctrine-bootstrap.php';
25 28
26// backup sur le système de fichiers en paramètre 29// backup sur le système de fichiers en paramètre
27if($argc === 2){ 30if($argc === 2){