1 | <?php |
||
15 | class DbBasedInstaller |
||
16 | { |
||
17 | /** @var Connection */ |
||
18 | protected $db; |
||
19 | |||
20 | /** @var \Symfony\Component\Console\Output\OutputInterface */ |
||
21 | protected $output; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $baseDataDir; |
||
25 | |||
26 | public function __construct(Connection $db) |
||
32 | |||
33 | /** |
||
34 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
35 | */ |
||
36 | public function setOutput($output) |
||
40 | |||
41 | /** |
||
42 | * Copy and override configuration file. |
||
43 | * |
||
44 | * @param string $source |
||
45 | * @param string $target |
||
46 | */ |
||
47 | protected function copyConfigurationFile($source, $target) |
||
56 | |||
57 | protected function runQueriesFromFile($file) |
||
76 | |||
77 | /** |
||
78 | * Get DBMS-specific SQL data file path. |
||
79 | * |
||
80 | * @param string $relativeFilePath SQL file path relative to {baseDir}/{dbms} directory |
||
81 | * |
||
82 | * @return string absolute existing file path |
||
83 | * |
||
84 | * @throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentException |
||
85 | * |
||
86 | * @since 6.13 |
||
87 | */ |
||
88 | final protected function getKernelSQLFileForDBMS($relativeFilePath) |
||
107 | } |
||
108 |