|
5 | 5 | use Doctrine\Common\EventManager;
|
6 | 6 | use Doctrine\DBAL\Configuration;
|
7 | 7 | use Doctrine\DBAL\Connection;
|
8 |
| -use Doctrine\DBAL\DBALException; |
9 | 8 | use Doctrine\DBAL\Driver\AbstractMySQLDriver;
|
10 | 9 | use Doctrine\DBAL\DriverManager;
|
11 | 10 | use Doctrine\DBAL\Exception\DriverException;
|
@@ -48,7 +47,7 @@ public function createConnection(array $params, Configuration $config = null, Ev
|
48 | 47 | $wrapperClass = null;
|
49 | 48 | if (isset($params['wrapperClass'])) {
|
50 | 49 | if (! is_subclass_of($params['wrapperClass'], Connection::class)) {
|
51 |
| - throw DBALException::invalidWrapperClass($params['wrapperClass']); |
| 50 | + throw \Doctrine\DBAL\Exception::invalidWrapperClass($params['wrapperClass']); |
52 | 51 | }
|
53 | 52 |
|
54 | 53 | $wrapperClass = $params['wrapperClass'];
|
@@ -97,14 +96,14 @@ public function createConnection(array $params, Configuration $config = null, Ev
|
97 | 96 | * and the platform version is unknown.
|
98 | 97 | * For details have a look at DoctrineBundle issue #673.
|
99 | 98 | *
|
100 |
| - * @throws DBALException |
| 99 | + * @throws \Doctrine\DBAL\Exception |
101 | 100 | */
|
102 | 101 | private function getDatabasePlatform(Connection $connection) : AbstractPlatform
|
103 | 102 | {
|
104 | 103 | try {
|
105 | 104 | return $connection->getDatabasePlatform();
|
106 | 105 | } catch (DriverException $driverException) {
|
107 |
| - throw new DBALException( |
| 106 | + throw new \Doctrine\DBAL\Exception( |
108 | 107 | 'An exception occurred while establishing a connection to figure out your platform version.' . PHP_EOL .
|
109 | 108 | "You can circumvent this by setting a 'server_version' configuration value" . PHP_EOL . PHP_EOL .
|
110 | 109 | 'For further information have a look at:' . PHP_EOL .
|
|
0 commit comments