WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bcb79b7

Browse files
replace puli (#7)
1 parent 143afe3 commit bcb79b7

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

composer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
"description": "Nanando-Plugin to backup mysql databases",
44
"type": "plugin",
55
"require": {
6-
"symfony/process": "^3.0"
6+
"symfony/process": "^5.2"
77
},
88
"require-dev": {
99
"nanbando/core": "^0.1|dev-master",
1010
"dflydev/embedded-composer": "@dev",
11-
"puli/repository": "@dev",
12-
"puli/discovery": "@dev",
13-
"puli/url-generator": "@dev",
14-
"puli/manager": "@dev",
1511

1612
"phpunit/phpunit": "^5.3"
1713
},
@@ -24,7 +20,14 @@
2420
"authors": [
2521
{
2622
"name": "Johannes Wachter",
27-
"email": "johannes[email protected]"
23+
"email": "johannes@sulu.io"
2824
}
29-
]
25+
],
26+
"extra": {
27+
"nanbando": {
28+
"bundle-classes": [
29+
"Nanbando\\Plugin\\Mysql\\NanbandoMysqlBundle"
30+
]
31+
}
32+
}
3033
}

puli.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/MysqlPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function backup(Filesystem $source, Filesystem $destination, Database $da
5656
);
5757

5858
$tempFile = $this->temporaryFileSystem->createTemporaryFile('mysql');
59-
$process = new Process($this->getExportCommand($parameter, $tempFile));
59+
$process = Process::fromShellCommandline($this->getExportCommand($parameter, $tempFile));
6060
$process->run();
6161

6262
while ($process->isRunning()) {
@@ -84,7 +84,7 @@ public function restore(
8484
$tempFile = $this->temporaryFileSystem->createTemporaryFile('mysql');
8585
file_put_contents($tempFile, $source->read('dump.sql'));
8686

87-
$process = new Process($this->getImportCommand($parameter, $tempFile));
87+
$process = Process::fromShellCommandline($this->getImportCommand($parameter, $tempFile));
8888
$process->run();
8989

9090
while ($process->isRunning()) {

0 commit comments

Comments
 (0)