diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-01-08 14:58:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 14:58:43 +0100 |
commit | 81302f78e5cea60dc9064be8ed979d523ff84e18 (patch) | |
tree | 76e8d025c3003e718cf5e04105b782ba8aaa4891 /lib/private/AppFramework/Http | |
parent | aeb32e1bc8f50d641e093589cc2f8c90da166768 (diff) | |
parent | 250f76a59cfc865e2a6bd36b690abeed3b529490 (diff) | |
download | nextcloud-server-81302f78e5cea60dc9064be8ed979d523ff84e18.tar.gz nextcloud-server-81302f78e5cea60dc9064be8ed979d523ff84e18.zip |
Merge pull request #24948 from nextcloud/dependabot/composer/doctrine/dbal-3.0.0
Bump doctrine/dbal from 2.12.0 to 3.0.0
Diffstat (limited to 'lib/private/AppFramework/Http')
-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']; |