diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-07-06 17:04:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 17:04:23 +0200 |
commit | fc0bcaa28267d1623d17ef8c03f372c500d4dece (patch) | |
tree | 9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/public/AppFramework/Http/Response.php | |
parent | 5538a40029da60547798ae6f9e11179c4ee4a642 (diff) | |
parent | 14719110b9c795a95b23c2278168b9d6123b1a62 (diff) | |
download | nextcloud-server-fc0bcaa28267d1623d17ef8c03f372c500d4dece.tar.gz nextcloud-server-fc0bcaa28267d1623d17ef8c03f372c500d4dece.zip |
Merge pull request #38663 from nextcloud/chore/oc-server-query-to-ocp-server-get-lib
chore: Replace \OC::$server->query with \OCP\Server::get in /lib
Diffstat (limited to 'lib/public/AppFramework/Http/Response.php')
-rw-r--r-- | lib/public/AppFramework/Http/Response.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |