summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php')
-rw-r--r--vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php b/vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php
new file mode 100644
index 0000000..efba87f
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php
@@ -0,0 +1,20 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Schema;
6
7use Doctrine\DBAL\Connection;
8use Doctrine\DBAL\Exception;
9
10/**
11 * A schema manager factory that returns the default schema manager for the given platform.
12 */
13final class DefaultSchemaManagerFactory implements SchemaManagerFactory
14{
15 /** @throws Exception If the platform does not support creating schema managers yet. */
16 public function createSchemaManager(Connection $connection): AbstractSchemaManager
17 {
18 return $connection->getDatabasePlatform()->createSchemaManager($connection);
19 }
20}