From 14719110b9c795a95b23c2278168b9d6123b1a62 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 6 Jun 2023 11:09:24 +0200 Subject: chore: Replace \OC::$server->query with \OCP\Server::get in /lib Signed-off-by: Christoph Wurst --- lib/public/AppFramework/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public/AppFramework/Http') diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php index d14d68d32b3..dd4f2c53418 100644 --- a/lib/public/AppFramework/Http/Response.php +++ b/lib/public/AppFramework/Http/Response.php @@ -119,7 +119,7 @@ class Response { // Set expires header $expires = new \DateTime(); /** @var ITimeFactory $time */ - $time = \OC::$server->query(ITimeFactory::class); + $time = \OCP\Server::get(ITimeFactory::class); $expires->setTimestamp($time->getTime()); $expires->add(new \DateInterval('PT'.$cacheSeconds.'S')); $this->addHeader('Expires', $expires->format(\DateTimeInterface::RFC2822)); -- cgit v1.2.3