]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fully deprecate the old initial state interface, not just the methods 25279/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 22 Jan 2021 13:53:26 +0000 (14:53 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 22 Jan 2021 13:53:26 +0000 (14:53 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/public/IInitialStateService.php

index 7f3e495ea22670778dd5103a23eaaed4a6a1d59c..44c4a4fd3dad4f5297b8ca5536a17c5d1098e7e0 100644 (file)
@@ -31,6 +31,8 @@ use Closure;
 
 /**
  * @since 16.0.0
+ * @deprecated 21 Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider
+ * @see \OCP\AppFramework\Services\IInitialState
  */
 interface IInitialStateService {
        /**
@@ -45,6 +47,7 @@ interface IInitialStateService {
         * @param bool|int|float|string|array|\JsonSerializable $data
         *
         * @deprecated 21 Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider
+        * @see \OCP\AppFramework\Services\IInitialState::provideInitialState()
         */
        public function provideInitialState(string $appName, string $key, $data): void;
 
@@ -62,6 +65,7 @@ interface IInitialStateService {
         * @param Closure $closure returns a primitive or an object that implements JsonSerializable
         *
         * @deprecated 21 Use OCP\AppFramework\Services\IInitialState or OCP\AppFramework\Services\InitialStateProvider
+        * @see \OCP\AppFramework\Services\IInitialState::provideLazyInitialState()
         */
        public function provideLazyInitialState(string $appName, string $key, Closure $closure): void;
 }