Skip to content

Commit

Permalink
Extension: support custom SchemaManagerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslavlibal authored and f3l1x committed Feb 13, 2024
1 parent 26b53be commit 1539dda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DI/DbalExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function getConfigSchema(): Schema
'resultCache' => Expect::anyOf($expectService),
'schemaAssetsFilter' => Expect::anyOf($expectService),
'filterSchemaAssetsExpression' => Expect::string()->nullable(),
'schemaManagerFactory' => Expect::anyOf($expectService),
'autoCommit' => Expect::bool(true),
]),
'connection' => Expect::structure([
Expand Down Expand Up @@ -111,6 +112,11 @@ public function loadDoctrineConfiguration(): void
$configuration->addSetup('setFilterSchemaAssetsExpression', [$configurationConfig->filterSchemaAssetsExpression]);
}

// SchemaManagerFactory
if ($configurationConfig->schemaManagerFactory !== null) {
$configuration->addSetup('setSchemaManagerFactory', [$configurationConfig->schemaManagerFactory]);
}

// AutoCommit
$configuration->addSetup('setAutoCommit', [$configurationConfig->autoCommit]);

Expand Down

0 comments on commit 1539dda

Please sign in to comment.