diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php b/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php new file mode 100644 index 0000000..482f134 --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php | |||
@@ -0,0 +1,39 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Driver\Middleware; | ||
6 | |||
7 | use Doctrine\DBAL\Driver; | ||
8 | use Doctrine\DBAL\Driver\API\ExceptionConverter; | ||
9 | use Doctrine\DBAL\Driver\Connection as DriverConnection; | ||
10 | use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
11 | use Doctrine\DBAL\ServerVersionProvider; | ||
12 | use SensitiveParameter; | ||
13 | |||
14 | abstract class AbstractDriverMiddleware implements Driver | ||
15 | { | ||
16 | public function __construct(private readonly Driver $wrappedDriver) | ||
17 | { | ||
18 | } | ||
19 | |||
20 | /** | ||
21 | * {@inheritDoc} | ||
22 | */ | ||
23 | public function connect( | ||
24 | #[SensitiveParameter] | ||
25 | array $params, | ||
26 | ): DriverConnection { | ||
27 | return $this->wrappedDriver->connect($params); | ||
28 | } | ||
29 | |||
30 | public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform | ||
31 | { | ||
32 | return $this->wrappedDriver->getDatabasePlatform($versionProvider); | ||
33 | } | ||
34 | |||
35 | public function getExceptionConverter(): ExceptionConverter | ||
36 | { | ||
37 | return $this->wrappedDriver->getExceptionConverter(); | ||
38 | } | ||
39 | } | ||