1 | <?php |
||
10 | class MySqlImporter implements ImporterInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Symfony\Component\Process\ProcessBuilder |
||
14 | */ |
||
15 | private $processBuilder; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $executable; |
||
21 | |||
22 | /** |
||
23 | * @param array $options |
||
24 | * @param int $timeout |
||
25 | * @param null|string $executable |
||
26 | * @param null|ProcessBuilder $processBuilder |
||
27 | */ |
||
28 | 6 | public function __construct( |
|
57 | |||
58 | /** |
||
59 | * Import dump to database. |
||
60 | * |
||
61 | * @param string $file |
||
62 | * @param null|callable $callback |
||
63 | * |
||
64 | * @throws DatabaseException |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 5 | public function import($file, $callback = null) |
|
91 | } |
||
92 |