aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-12-22 20:09:25 +0100
committerJoas Schilling <coding@schilljs.com>2023-03-03 15:37:13 +0100
commitc297f8ee96bce394fab1df48d203c1287b1f428a (patch)
tree76875696728c79ca903363c566acfd7bc64ba9c5 /lib/private/Server.php
parentc5da4b8737a7463b1920ab20e5a73abd608f520e (diff)
downloadnextcloud-server-c297f8ee96bce394fab1df48d203c1287b1f428a.tar.gz
nextcloud-server-c297f8ee96bce394fab1df48d203c1287b1f428a.zip
feat(appframework): ⌚ Make ITimeFactory extend \PSR\Clock\ClockInterface
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index fbb86711b41..f9fc585e74d 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1387,6 +1387,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerDeprecatedAlias('ControllerMethodReflector', \OCP\AppFramework\Utility\IControllerMethodReflector::class);
$this->registerAlias(\OCP\AppFramework\Utility\ITimeFactory::class, \OC\AppFramework\Utility\TimeFactory::class);
+ $this->registerAlias(\Psr\Clock\ClockInterface::class, \OCP\AppFramework\Utility\ITimeFactory::class);
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class);