diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Schema/DefaultSchemaManagerFactory.php | 20 |
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 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Schema; | ||
6 | |||
7 | use Doctrine\DBAL\Connection; | ||
8 | use Doctrine\DBAL\Exception; | ||
9 | |||
10 | /** | ||
11 | * A schema manager factory that returns the default schema manager for the given platform. | ||
12 | */ | ||
13 | final 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 | } | ||