diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-02-04 11:13:50 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-02-07 12:51:42 +0100 |
commit | 9a656e5b35d004b55fbe09d10d51254a8ec4fd67 (patch) | |
tree | ed1dd47a11822744820866ef2b5a5fc3e7dedeb9 /lib/public | |
parent | bb55b79837a677074473e980a6b88d358a118621 (diff) | |
download | nextcloud-server-9a656e5b35d004b55fbe09d10d51254a8ec4fd67.tar.gz nextcloud-server-9a656e5b35d004b55fbe09d10d51254a8ec4fd67.zip |
Move calendar resource/room backend registration to IBootstrap
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 20 | ||||
-rw-r--r-- | lib/public/Calendar/Resource/IManager.php | 11 | ||||
-rw-r--r-- | lib/public/Calendar/Room/IManager.php | 11 |
3 files changed, 38 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index 19b5665f547..89583912e00 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -275,4 +275,24 @@ interface IRegistrationContext { * @since 24.0.0 */ public function registerTalkBackend(string $backend): void; + + /** + * Register a resource backend for the DAV server + * + * @param string $actionClass + * @psalm-param class-string<\OCP\Calendar\Resource\IBackend> $actionClass + * @return void + * @since 24.0.0 + */ + public function registerCalendarResourceBackend(string $class): void; + + /** + * Register a room backend for the DAV server + * + * @param string $actionClass + * @psalm-param class-string<\OCP\Calendar\Room\IBackend> $actionClass + * @return void + * @since 24.0.0 + */ + public function registerCalendarRoomBackend(string $class): void; } diff --git a/lib/public/Calendar/Resource/IManager.php b/lib/public/Calendar/Resource/IManager.php index 6910ecb164c..268cf8ec633 100644 --- a/lib/public/Calendar/Resource/IManager.php +++ b/lib/public/Calendar/Resource/IManager.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright 2018, Georg Ehrke <oc.list@georgehrke.com> * @@ -23,9 +26,8 @@ namespace OCP\Calendar\Resource; /** - * Interface IManager - * * @since 14.0.0 + * @deprecated 24.0.0 */ interface IManager { @@ -35,6 +37,7 @@ interface IManager { * @param string $backendClass * @return void * @since 14.0.0 + * @deprecated 24.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarResourceBackend */ public function registerBackend(string $backendClass); @@ -44,12 +47,14 @@ interface IManager { * @param string $backendClass * @return void * @since 14.0.0 + * @deprecated 24.0.0 */ public function unregisterBackend(string $backendClass); /** * @return IBackend[] * @since 14.0.0 + * @deprecated 24.0.0 */ public function getBackends():array; @@ -57,6 +62,7 @@ interface IManager { * @param string $backendId * @return IBackend|null * @since 14.0.0 + * @deprecated 24.0.0 */ public function getBackend($backendId); @@ -64,6 +70,7 @@ interface IManager { * removes all registered backend instances * @return void * @since 14.0.0 + * @deprecated 24.0.0 */ public function clear(); } diff --git a/lib/public/Calendar/Room/IManager.php b/lib/public/Calendar/Room/IManager.php index 6529ad265b6..c55f3fd4ae4 100644 --- a/lib/public/Calendar/Room/IManager.php +++ b/lib/public/Calendar/Room/IManager.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright 2018, Georg Ehrke <oc.list@georgehrke.com> * @@ -23,9 +26,8 @@ namespace OCP\Calendar\Room; /** - * Interface IManager - * * @since 14.0.0 + * @deprecated 24.0.0 */ interface IManager { @@ -35,6 +37,7 @@ interface IManager { * @param string $backendClass * @return void * @since 14.0.0 + * @deprecated 24.0.0 use \OC\AppFramework\Bootstrap\::registerCalendarRoomBackend */ public function registerBackend(string $backendClass); @@ -44,12 +47,14 @@ interface IManager { * @param string $backendClass * @return void * @since 14.0.0 + * @deprecated 24.0.0 */ public function unregisterBackend(string $backendClass); /** * @return IBackend[] * @since 14.0.0 + * @deprecated 24.0.0 */ public function getBackends():array; @@ -57,6 +62,7 @@ interface IManager { * @param string $backendId * @return IBackend|null * @since 14.0.0 + * @deprecated 24.0.0 */ public function getBackend($backendId); @@ -64,6 +70,7 @@ interface IManager { * removes all registered backend instances * @return void * @since 14.0.0 + * @deprecated 24.0.0 */ public function clear(); } |