Skip to content
Snippets Groups Projects
Unverified Commit 257e7c4b authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #25279 from nextcloud/fix/fully-deprecate-old-initial-state-interface

Fully deprecate the old initial state interface, not just the methods
parents a38743d9 ac591e2f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment