mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #25279 from nextcloud/fix/fully-deprecate-old-initial-state-interface
Fully deprecate the old initial state interface, not just the methods
This commit is contained in:
commit
257e7c4b51
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue