@@ -34,30 +34,30 @@ |
||
34 | 34 | */ |
35 | 35 | interface IInitialState { |
36 | 36 | |
37 | - /** |
|
38 | - * Allows an app to provide its initial state to the template system. |
|
39 | - * Use this if you know your initial state sill be used for example if |
|
40 | - * you are in the render function of you controller. |
|
41 | - * |
|
42 | - * @since 20.0.0 |
|
43 | - * |
|
44 | - * @param string $key |
|
45 | - * @param bool|int|float|string|array|\JsonSerializable $data |
|
46 | - */ |
|
47 | - public function provideInitialState(string $key, $data): void; |
|
37 | + /** |
|
38 | + * Allows an app to provide its initial state to the template system. |
|
39 | + * Use this if you know your initial state sill be used for example if |
|
40 | + * you are in the render function of you controller. |
|
41 | + * |
|
42 | + * @since 20.0.0 |
|
43 | + * |
|
44 | + * @param string $key |
|
45 | + * @param bool|int|float|string|array|\JsonSerializable $data |
|
46 | + */ |
|
47 | + public function provideInitialState(string $key, $data): void; |
|
48 | 48 | |
49 | - /** |
|
50 | - * Allows an app to provide its initial state via a lazy method. |
|
51 | - * This will call the closure when the template is being generated. |
|
52 | - * Use this if your app is injected into pages. Since then the render method |
|
53 | - * is not called explicitly. But we do not want to load the state on webdav |
|
54 | - * requests for example. |
|
55 | - * |
|
56 | - * @since 20.0.0 |
|
57 | - * |
|
58 | - * @param string $key |
|
59 | - * @param Closure $closure returns a primitive or an object that implements JsonSerializable |
|
60 | - * @psalm-param Closure():int|Closure():float|Closure():string|Closure():\JsonSerializable $closure |
|
61 | - */ |
|
62 | - public function provideLazyInitialState(string $key, Closure $closure): void; |
|
49 | + /** |
|
50 | + * Allows an app to provide its initial state via a lazy method. |
|
51 | + * This will call the closure when the template is being generated. |
|
52 | + * Use this if your app is injected into pages. Since then the render method |
|
53 | + * is not called explicitly. But we do not want to load the state on webdav |
|
54 | + * requests for example. |
|
55 | + * |
|
56 | + * @since 20.0.0 |
|
57 | + * |
|
58 | + * @param string $key |
|
59 | + * @param Closure $closure returns a primitive or an object that implements JsonSerializable |
|
60 | + * @psalm-param Closure():int|Closure():float|Closure():string|Closure():\JsonSerializable $closure |
|
61 | + */ |
|
62 | + public function provideLazyInitialState(string $key, Closure $closure): void; |
|
63 | 63 | } |