summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Tools/Console/ConnectionProvider.php
blob: 0ae28c55da5ab58b4f8ca78c17755368b0fed0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tools\Console;

use Doctrine\DBAL\Connection;

interface ConnectionProvider
{
    public function getDefaultConnection(): Connection;

    /** @throws ConnectionNotFound in case a connection with the given name does not exist. */
    public function getConnection(string $name): Connection;
}