Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
621 lars 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
}