Skip to content

Commit addbecc

Browse files
committed
Merge remote-tracking branch 'origin/2.5'
2 parents 41c8435 + c612ffa commit addbecc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/VIPSoft/DoctrineDataFixturesExtension/Service/Backup/MysqlDumpBackup.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public function create($database, $file, array $params)
7373
$command .= sprintf(" --password=%s", escapeshellarg($params['password']));
7474
}
7575

76+
if (isset($params['port'])) {
77+
$command .= sprintf(" -P%s", escapeshellarg($params['port']));
78+
}
79+
7680
$this->runCommand($command);
7781
}
7882

@@ -95,6 +99,10 @@ public function restore($database, $file, array $params)
9599
$command .= sprintf(" --password=%s", escapeshellarg($params['password']));
96100
}
97101

102+
if (isset($params['port'])) {
103+
$command .= sprintf(" -P%s", escapeshellarg($params['port']));
104+
}
105+
98106
$this->runCommand($command);
99107
}
100108
}

0 commit comments

Comments
 (0)