<?php declare(strict_types=1); namespace Doctrine\DBAL\Logging; use Doctrine\DBAL\Driver as DriverInterface; use Doctrine\DBAL\Driver\Middleware as MiddlewareInterface; use Psr\Log\LoggerInterface; final class Middleware implements MiddlewareInterface { private LoggerInterface $logger; public function __construct(LoggerInterface $logger) { $this->logger = $logger; } public function wrap(DriverInterface $driver): DriverInterface { return new Driver($driver, $this->logger); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Connection.php | File | 1.78 KB | 0644 |
|
DebugStack.php | File | 1.41 KB | 0644 |
|
Driver.php | File | 1.33 KB | 0644 |
|
LoggerChain.php | File | 984 B | 0644 |
|
Middleware.php | File | 531 B | 0644 |
|
SQLLogger.php | File | 949 B | 0644 |
|
Statement.php | File | 2.9 KB | 0644 |
|