diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-03 15:28:31 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-08 11:45:19 +0100 |
commit | 8b64e92b9262d2a2eec6345685ce421050f95c66 (patch) | |
tree | dd51490b8a184b2643414d11867a9fa450aa5065 /lib/private/AppFramework | |
parent | 84e6e9f7cf19207041925eaa237d24e1c12c2c2d (diff) | |
download | nextcloud-server-8b64e92b9262d2a2eec6345685ce421050f95c66.tar.gz nextcloud-server-8b64e92b9262d2a2eec6345685ce421050f95c66.zip |
Bump doctrine/dbal from 2.12.0 to 3.0.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index 47e6650c999..828864f1e02 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -36,12 +36,11 @@ namespace OC\AppFramework\Http; use OC\AppFramework\Http; use OC\AppFramework\Middleware\MiddlewareDispatcher; use OC\AppFramework\Utility\ControllerMethodReflector; -use OC\DB\Connection; +use OC\DB\ConnectionAdapter; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\Response; use OCP\IConfig; -use OCP\IDBConnection; use OCP\IRequest; use Psr\Log\LoggerInterface; @@ -65,7 +64,7 @@ class Dispatcher { /** @var IConfig */ private $config; - /** @var IDBConnection|Connection */ + /** @var ConnectionAdapter */ private $connection; /** @var LoggerInterface */ @@ -79,7 +78,7 @@ class Dispatcher { * the arguments for the controller * @param IRequest $request the incoming request * @param IConfig $config - * @param IDBConnection $connection + * @param ConnectionAdapter $connection * @param LoggerInterface $logger */ public function __construct(Http $protocol, @@ -87,7 +86,7 @@ class Dispatcher { ControllerMethodReflector $reflector, IRequest $request, IConfig $config, - IDBConnection $connection, + ConnectionAdapter $connection, LoggerInterface $logger) { $this->protocol = $protocol; $this->middlewareDispatcher = $middlewareDispatcher; @@ -122,13 +121,13 @@ class Dispatcher { $databaseStatsBefore = []; if ($this->config->getSystemValueBool('debug', false)) { - $databaseStatsBefore = $this->connection->getStats(); + $databaseStatsBefore = $this->connection->getInner()->getStats(); } $response = $this->executeController($controller, $methodName); if (!empty($databaseStatsBefore)) { - $databaseStatsAfter = $this->connection->getStats(); + $databaseStatsAfter = $this->connection->getInner()->getStats(); $numBuilt = $databaseStatsAfter['built'] - $databaseStatsBefore['built']; $numExecuted = $databaseStatsAfter['executed'] - $databaseStatsBefore['executed']; |