1 | <?php |
||
21 | class CoreInstaller extends DbBasedInstaller implements Installer |
||
22 | { |
||
23 | /** |
||
24 | * @var \EzSystems\DoctrineSchema\API\Builder\SchemaBuilder |
||
25 | */ |
||
26 | protected $schemaBuilder; |
||
27 | |||
28 | /** |
||
29 | * @param \Doctrine\DBAL\Connection $db |
||
30 | * @param \EzSystems\DoctrineSchema\API\Builder\SchemaBuilder $schemaBuilder |
||
31 | */ |
||
32 | public function __construct(Connection $db, SchemaBuilder $schemaBuilder) |
||
38 | |||
39 | /** |
||
40 | * Import Schema using event-driven Schema Builder API from eZ Systems DoctrineSchema Bundle. |
||
41 | * |
||
42 | * If you wish to extend schema, implement your own EventSubscriber |
||
43 | * |
||
44 | * @see \EzSystems\DoctrineSchema\API\Event\SchemaBuilderEvent |
||
45 | * @see \EzSystems\PlatformInstallerBundle\Event\Subscriber\BuildSchemaSubscriber |
||
46 | * |
||
47 | * @throws \Doctrine\DBAL\DBALException |
||
48 | */ |
||
49 | public function importSchema() |
||
88 | |||
89 | /** |
||
90 | * @throws \Doctrine\DBAL\DBALException |
||
91 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
||
92 | */ |
||
93 | public function importData() |
||
97 | |||
98 | /** |
||
99 | * @param \Doctrine\DBAL\Schema\Schema $newSchema |
||
100 | * @param \Doctrine\DBAL\Platforms\AbstractPlatform $databasePlatform |
||
101 | * |
||
102 | * @return string[] |
||
103 | */ |
||
104 | protected function getDropSqlStatementsForExistingSchema( |
||
121 | |||
122 | /** |
||
123 | * Handle optional import of binary files to var folder. |
||
124 | */ |
||
125 | public function importBinaries() |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | public function createConfiguration() |
||
135 | } |
||
136 |