@@ -29,22 +29,22 @@ |
||
29 | 29 | * @since 21.0.0 |
30 | 30 | */ |
31 | 31 | abstract class InitialStateProvider implements \JsonSerializable { |
32 | - /** |
|
33 | - * @since 21.0.0 |
|
34 | - */ |
|
35 | - abstract public function getKey(): string; |
|
32 | + /** |
|
33 | + * @since 21.0.0 |
|
34 | + */ |
|
35 | + abstract public function getKey(): string; |
|
36 | 36 | |
37 | - /** |
|
38 | - * @since 21.0.0 |
|
39 | - */ |
|
40 | - abstract public function getData(); |
|
37 | + /** |
|
38 | + * @since 21.0.0 |
|
39 | + */ |
|
40 | + abstract public function getData(); |
|
41 | 41 | |
42 | - /** |
|
43 | - * @since 21.0.0 |
|
44 | - * @return mixed |
|
45 | - */ |
|
46 | - #[\ReturnTypeWillChange] |
|
47 | - final public function jsonSerialize() { |
|
48 | - return $this->getData(); |
|
49 | - } |
|
42 | + /** |
|
43 | + * @since 21.0.0 |
|
44 | + * @return mixed |
|
45 | + */ |
|
46 | + #[\ReturnTypeWillChange] |
|
47 | + final public function jsonSerialize() { |
|
48 | + return $this->getData(); |
|
49 | + } |
|
50 | 50 | } |
@@ -36,147 +36,147 @@ |
||
36 | 36 | * @since 17.0.0 |
37 | 37 | */ |
38 | 38 | class EmptyFeaturePolicy { |
39 | - /** @var string[] of allowed domains to autoplay media */ |
|
40 | - protected $autoplayDomains = null; |
|
41 | - |
|
42 | - /** @var string[] of allowed domains that can access the camera */ |
|
43 | - protected $cameraDomains = null; |
|
44 | - |
|
45 | - /** @var string[] of allowed domains that can use fullscreen */ |
|
46 | - protected $fullscreenDomains = null; |
|
47 | - |
|
48 | - /** @var string[] of allowed domains that can use the geolocation of the device */ |
|
49 | - protected $geolocationDomains = null; |
|
50 | - |
|
51 | - /** @var string[] of allowed domains that can use the microphone */ |
|
52 | - protected $microphoneDomains = null; |
|
53 | - |
|
54 | - /** @var string[] of allowed domains that can use the payment API */ |
|
55 | - protected $paymentDomains = null; |
|
56 | - |
|
57 | - /** |
|
58 | - * Allows to use autoplay from a specific domain. Use * to allow from all domains. |
|
59 | - * |
|
60 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
61 | - * @return $this |
|
62 | - * @since 17.0.0 |
|
63 | - */ |
|
64 | - public function addAllowedAutoplayDomain(string $domain): self { |
|
65 | - $this->autoplayDomains[] = $domain; |
|
66 | - return $this; |
|
67 | - } |
|
68 | - |
|
69 | - /** |
|
70 | - * Allows to use the camera on a specific domain. Use * to allow from all domains |
|
71 | - * |
|
72 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
73 | - * @return $this |
|
74 | - * @since 17.0.0 |
|
75 | - */ |
|
76 | - public function addAllowedCameraDomain(string $domain): self { |
|
77 | - $this->cameraDomains[] = $domain; |
|
78 | - return $this; |
|
79 | - } |
|
80 | - |
|
81 | - /** |
|
82 | - * Allows the full screen functionality to be used on a specific domain. Use * to allow from all domains |
|
83 | - * |
|
84 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
85 | - * @return $this |
|
86 | - * @since 17.0.0 |
|
87 | - */ |
|
88 | - public function addAllowedFullScreenDomain(string $domain): self { |
|
89 | - $this->fullscreenDomains[] = $domain; |
|
90 | - return $this; |
|
91 | - } |
|
92 | - |
|
93 | - /** |
|
94 | - * Allows to use the geolocation on a specific domain. Use * to allow from all domains |
|
95 | - * |
|
96 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
97 | - * @return $this |
|
98 | - * @since 17.0.0 |
|
99 | - */ |
|
100 | - public function addAllowedGeoLocationDomain(string $domain): self { |
|
101 | - $this->geolocationDomains[] = $domain; |
|
102 | - return $this; |
|
103 | - } |
|
104 | - |
|
105 | - /** |
|
106 | - * Allows to use the microphone on a specific domain. Use * to allow from all domains |
|
107 | - * |
|
108 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
109 | - * @return $this |
|
110 | - * @since 17.0.0 |
|
111 | - */ |
|
112 | - public function addAllowedMicrophoneDomain(string $domain): self { |
|
113 | - $this->microphoneDomains[] = $domain; |
|
114 | - return $this; |
|
115 | - } |
|
116 | - |
|
117 | - /** |
|
118 | - * Allows to use the payment API on a specific domain. Use * to allow from all domains |
|
119 | - * |
|
120 | - * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
121 | - * @return $this |
|
122 | - * @since 17.0.0 |
|
123 | - */ |
|
124 | - public function addAllowedPaymentDomain(string $domain): self { |
|
125 | - $this->paymentDomains[] = $domain; |
|
126 | - return $this; |
|
127 | - } |
|
128 | - |
|
129 | - /** |
|
130 | - * Get the generated Feature-Policy as a string |
|
131 | - * |
|
132 | - * @return string |
|
133 | - * @since 17.0.0 |
|
134 | - */ |
|
135 | - public function buildPolicy(): string { |
|
136 | - $policy = ''; |
|
137 | - |
|
138 | - if (empty($this->autoplayDomains)) { |
|
139 | - $policy .= "autoplay 'none';"; |
|
140 | - } else { |
|
141 | - $policy .= 'autoplay ' . implode(' ', $this->autoplayDomains); |
|
142 | - $policy .= ';'; |
|
143 | - } |
|
144 | - |
|
145 | - if (empty($this->cameraDomains)) { |
|
146 | - $policy .= "camera 'none';"; |
|
147 | - } else { |
|
148 | - $policy .= 'camera ' . implode(' ', $this->cameraDomains); |
|
149 | - $policy .= ';'; |
|
150 | - } |
|
151 | - |
|
152 | - if (empty($this->fullscreenDomains)) { |
|
153 | - $policy .= "fullscreen 'none';"; |
|
154 | - } else { |
|
155 | - $policy .= 'fullscreen ' . implode(' ', $this->fullscreenDomains); |
|
156 | - $policy .= ';'; |
|
157 | - } |
|
158 | - |
|
159 | - if (empty($this->geolocationDomains)) { |
|
160 | - $policy .= "geolocation 'none';"; |
|
161 | - } else { |
|
162 | - $policy .= 'geolocation ' . implode(' ', $this->geolocationDomains); |
|
163 | - $policy .= ';'; |
|
164 | - } |
|
165 | - |
|
166 | - if (empty($this->microphoneDomains)) { |
|
167 | - $policy .= "microphone 'none';"; |
|
168 | - } else { |
|
169 | - $policy .= 'microphone ' . implode(' ', $this->microphoneDomains); |
|
170 | - $policy .= ';'; |
|
171 | - } |
|
172 | - |
|
173 | - if (empty($this->paymentDomains)) { |
|
174 | - $policy .= "payment 'none';"; |
|
175 | - } else { |
|
176 | - $policy .= 'payment ' . implode(' ', $this->paymentDomains); |
|
177 | - $policy .= ';'; |
|
178 | - } |
|
179 | - |
|
180 | - return rtrim($policy, ';'); |
|
181 | - } |
|
39 | + /** @var string[] of allowed domains to autoplay media */ |
|
40 | + protected $autoplayDomains = null; |
|
41 | + |
|
42 | + /** @var string[] of allowed domains that can access the camera */ |
|
43 | + protected $cameraDomains = null; |
|
44 | + |
|
45 | + /** @var string[] of allowed domains that can use fullscreen */ |
|
46 | + protected $fullscreenDomains = null; |
|
47 | + |
|
48 | + /** @var string[] of allowed domains that can use the geolocation of the device */ |
|
49 | + protected $geolocationDomains = null; |
|
50 | + |
|
51 | + /** @var string[] of allowed domains that can use the microphone */ |
|
52 | + protected $microphoneDomains = null; |
|
53 | + |
|
54 | + /** @var string[] of allowed domains that can use the payment API */ |
|
55 | + protected $paymentDomains = null; |
|
56 | + |
|
57 | + /** |
|
58 | + * Allows to use autoplay from a specific domain. Use * to allow from all domains. |
|
59 | + * |
|
60 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
61 | + * @return $this |
|
62 | + * @since 17.0.0 |
|
63 | + */ |
|
64 | + public function addAllowedAutoplayDomain(string $domain): self { |
|
65 | + $this->autoplayDomains[] = $domain; |
|
66 | + return $this; |
|
67 | + } |
|
68 | + |
|
69 | + /** |
|
70 | + * Allows to use the camera on a specific domain. Use * to allow from all domains |
|
71 | + * |
|
72 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
73 | + * @return $this |
|
74 | + * @since 17.0.0 |
|
75 | + */ |
|
76 | + public function addAllowedCameraDomain(string $domain): self { |
|
77 | + $this->cameraDomains[] = $domain; |
|
78 | + return $this; |
|
79 | + } |
|
80 | + |
|
81 | + /** |
|
82 | + * Allows the full screen functionality to be used on a specific domain. Use * to allow from all domains |
|
83 | + * |
|
84 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
85 | + * @return $this |
|
86 | + * @since 17.0.0 |
|
87 | + */ |
|
88 | + public function addAllowedFullScreenDomain(string $domain): self { |
|
89 | + $this->fullscreenDomains[] = $domain; |
|
90 | + return $this; |
|
91 | + } |
|
92 | + |
|
93 | + /** |
|
94 | + * Allows to use the geolocation on a specific domain. Use * to allow from all domains |
|
95 | + * |
|
96 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
97 | + * @return $this |
|
98 | + * @since 17.0.0 |
|
99 | + */ |
|
100 | + public function addAllowedGeoLocationDomain(string $domain): self { |
|
101 | + $this->geolocationDomains[] = $domain; |
|
102 | + return $this; |
|
103 | + } |
|
104 | + |
|
105 | + /** |
|
106 | + * Allows to use the microphone on a specific domain. Use * to allow from all domains |
|
107 | + * |
|
108 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
109 | + * @return $this |
|
110 | + * @since 17.0.0 |
|
111 | + */ |
|
112 | + public function addAllowedMicrophoneDomain(string $domain): self { |
|
113 | + $this->microphoneDomains[] = $domain; |
|
114 | + return $this; |
|
115 | + } |
|
116 | + |
|
117 | + /** |
|
118 | + * Allows to use the payment API on a specific domain. Use * to allow from all domains |
|
119 | + * |
|
120 | + * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. |
|
121 | + * @return $this |
|
122 | + * @since 17.0.0 |
|
123 | + */ |
|
124 | + public function addAllowedPaymentDomain(string $domain): self { |
|
125 | + $this->paymentDomains[] = $domain; |
|
126 | + return $this; |
|
127 | + } |
|
128 | + |
|
129 | + /** |
|
130 | + * Get the generated Feature-Policy as a string |
|
131 | + * |
|
132 | + * @return string |
|
133 | + * @since 17.0.0 |
|
134 | + */ |
|
135 | + public function buildPolicy(): string { |
|
136 | + $policy = ''; |
|
137 | + |
|
138 | + if (empty($this->autoplayDomains)) { |
|
139 | + $policy .= "autoplay 'none';"; |
|
140 | + } else { |
|
141 | + $policy .= 'autoplay ' . implode(' ', $this->autoplayDomains); |
|
142 | + $policy .= ';'; |
|
143 | + } |
|
144 | + |
|
145 | + if (empty($this->cameraDomains)) { |
|
146 | + $policy .= "camera 'none';"; |
|
147 | + } else { |
|
148 | + $policy .= 'camera ' . implode(' ', $this->cameraDomains); |
|
149 | + $policy .= ';'; |
|
150 | + } |
|
151 | + |
|
152 | + if (empty($this->fullscreenDomains)) { |
|
153 | + $policy .= "fullscreen 'none';"; |
|
154 | + } else { |
|
155 | + $policy .= 'fullscreen ' . implode(' ', $this->fullscreenDomains); |
|
156 | + $policy .= ';'; |
|
157 | + } |
|
158 | + |
|
159 | + if (empty($this->geolocationDomains)) { |
|
160 | + $policy .= "geolocation 'none';"; |
|
161 | + } else { |
|
162 | + $policy .= 'geolocation ' . implode(' ', $this->geolocationDomains); |
|
163 | + $policy .= ';'; |
|
164 | + } |
|
165 | + |
|
166 | + if (empty($this->microphoneDomains)) { |
|
167 | + $policy .= "microphone 'none';"; |
|
168 | + } else { |
|
169 | + $policy .= 'microphone ' . implode(' ', $this->microphoneDomains); |
|
170 | + $policy .= ';'; |
|
171 | + } |
|
172 | + |
|
173 | + if (empty($this->paymentDomains)) { |
|
174 | + $policy .= "payment 'none';"; |
|
175 | + } else { |
|
176 | + $policy .= 'payment ' . implode(' ', $this->paymentDomains); |
|
177 | + $policy .= ';'; |
|
178 | + } |
|
179 | + |
|
180 | + return rtrim($policy, ';'); |
|
181 | + } |
|
182 | 182 | } |
@@ -31,48 +31,48 @@ |
||
31 | 31 | * @since 8.1.0 |
32 | 32 | */ |
33 | 33 | interface IOutput { |
34 | - /** |
|
35 | - * @param string $out |
|
36 | - * @since 8.1.0 |
|
37 | - */ |
|
38 | - public function setOutput($out); |
|
34 | + /** |
|
35 | + * @param string $out |
|
36 | + * @since 8.1.0 |
|
37 | + */ |
|
38 | + public function setOutput($out); |
|
39 | 39 | |
40 | - /** |
|
41 | - * @param string|resource $path or file handle |
|
42 | - * |
|
43 | - * @return bool false if an error occurred |
|
44 | - * @since 8.1.0 |
|
45 | - */ |
|
46 | - public function setReadfile($path); |
|
40 | + /** |
|
41 | + * @param string|resource $path or file handle |
|
42 | + * |
|
43 | + * @return bool false if an error occurred |
|
44 | + * @since 8.1.0 |
|
45 | + */ |
|
46 | + public function setReadfile($path); |
|
47 | 47 | |
48 | - /** |
|
49 | - * @param string $header |
|
50 | - * @since 8.1.0 |
|
51 | - */ |
|
52 | - public function setHeader($header); |
|
48 | + /** |
|
49 | + * @param string $header |
|
50 | + * @since 8.1.0 |
|
51 | + */ |
|
52 | + public function setHeader($header); |
|
53 | 53 | |
54 | - /** |
|
55 | - * @return int returns the current http response code |
|
56 | - * @since 8.1.0 |
|
57 | - */ |
|
58 | - public function getHttpResponseCode(); |
|
54 | + /** |
|
55 | + * @return int returns the current http response code |
|
56 | + * @since 8.1.0 |
|
57 | + */ |
|
58 | + public function getHttpResponseCode(); |
|
59 | 59 | |
60 | - /** |
|
61 | - * @param int $code sets the http status code |
|
62 | - * @since 8.1.0 |
|
63 | - */ |
|
64 | - public function setHttpResponseCode($code); |
|
60 | + /** |
|
61 | + * @param int $code sets the http status code |
|
62 | + * @since 8.1.0 |
|
63 | + */ |
|
64 | + public function setHttpResponseCode($code); |
|
65 | 65 | |
66 | - /** |
|
67 | - * @param string $name |
|
68 | - * @param string $value |
|
69 | - * @param int $expire |
|
70 | - * @param string $path |
|
71 | - * @param string $domain |
|
72 | - * @param bool $secure |
|
73 | - * @param bool $httpOnly |
|
74 | - * @param string $sameSite (added in 20) |
|
75 | - * @since 8.1.0 |
|
76 | - */ |
|
77 | - public function setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite = 'Lax'); |
|
66 | + /** |
|
67 | + * @param string $name |
|
68 | + * @param string $value |
|
69 | + * @param int $expire |
|
70 | + * @param string $path |
|
71 | + * @param string $domain |
|
72 | + * @param bool $secure |
|
73 | + * @param bool $httpOnly |
|
74 | + * @param string $sameSite (added in 20) |
|
75 | + * @since 8.1.0 |
|
76 | + */ |
|
77 | + public function setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite = 'Lax'); |
|
78 | 78 | } |
@@ -30,11 +30,11 @@ |
||
30 | 30 | * @since 8.1.0 |
31 | 31 | */ |
32 | 32 | interface ICallbackResponse { |
33 | - /** |
|
34 | - * Outputs the content that should be printed |
|
35 | - * |
|
36 | - * @param IOutput $output a small wrapper that handles output |
|
37 | - * @since 8.1.0 |
|
38 | - */ |
|
39 | - public function callback(IOutput $output); |
|
33 | + /** |
|
34 | + * Outputs the content that should be printed |
|
35 | + * |
|
36 | + * @param IOutput $output a small wrapper that handles output |
|
37 | + * @since 8.1.0 |
|
38 | + */ |
|
39 | + public function callback(IOutput $output); |
|
40 | 40 | } |
@@ -42,10 +42,10 @@ |
||
42 | 42 | * @deprecated 17.0.0 |
43 | 43 | */ |
44 | 44 | class StrictInlineContentSecurityPolicy extends ContentSecurityPolicy { |
45 | - /** |
|
46 | - * @since 14.0.0 |
|
47 | - */ |
|
48 | - public function __construct() { |
|
49 | - $this->inlineStyleAllowed = false; |
|
50 | - } |
|
45 | + /** |
|
46 | + * @since 14.0.0 |
|
47 | + */ |
|
48 | + public function __construct() { |
|
49 | + $this->inlineStyleAllowed = false; |
|
50 | + } |
|
51 | 51 | } |
@@ -42,10 +42,10 @@ |
||
42 | 42 | * @deprecated 17.0.0 |
43 | 43 | */ |
44 | 44 | class StrictEvalContentSecurityPolicy extends ContentSecurityPolicy { |
45 | - /** |
|
46 | - * @since 14.0.0 |
|
47 | - */ |
|
48 | - public function __construct() { |
|
49 | - $this->evalScriptAllowed = false; |
|
50 | - } |
|
45 | + /** |
|
46 | + * @since 14.0.0 |
|
47 | + */ |
|
48 | + public function __construct() { |
|
49 | + $this->evalScriptAllowed = false; |
|
50 | + } |
|
51 | 51 | } |
@@ -35,43 +35,43 @@ |
||
35 | 35 | * @since 20.0.0 |
36 | 36 | */ |
37 | 37 | interface IBootContext { |
38 | - /** |
|
39 | - * Get hold of the app's container |
|
40 | - * |
|
41 | - * Useful to register and query app-specific services |
|
42 | - * |
|
43 | - * @return IAppContainer |
|
44 | - * @since 20.0.0 |
|
45 | - */ |
|
46 | - public function getAppContainer(): IAppContainer; |
|
38 | + /** |
|
39 | + * Get hold of the app's container |
|
40 | + * |
|
41 | + * Useful to register and query app-specific services |
|
42 | + * |
|
43 | + * @return IAppContainer |
|
44 | + * @since 20.0.0 |
|
45 | + */ |
|
46 | + public function getAppContainer(): IAppContainer; |
|
47 | 47 | |
48 | - /** |
|
49 | - * Get hold of the server DI container |
|
50 | - * |
|
51 | - * Useful to register and query system-wide services |
|
52 | - * |
|
53 | - * @return IServerContainer |
|
54 | - * @since 20.0.0 |
|
55 | - */ |
|
56 | - public function getServerContainer(): IServerContainer; |
|
48 | + /** |
|
49 | + * Get hold of the server DI container |
|
50 | + * |
|
51 | + * Useful to register and query system-wide services |
|
52 | + * |
|
53 | + * @return IServerContainer |
|
54 | + * @since 20.0.0 |
|
55 | + */ |
|
56 | + public function getServerContainer(): IServerContainer; |
|
57 | 57 | |
58 | - /** |
|
59 | - * Invoke the given callable and inject all parameters based on their types |
|
60 | - * and names |
|
61 | - * |
|
62 | - * Note: when used with methods, make sure they are public or use \Closure::fromCallable |
|
63 | - * to wrap the private method call, e.g. |
|
64 | - * * `$context->injectFn([$obj, 'publicMethod'])` |
|
65 | - * * `$context->injectFn([$this, 'publicMethod'])` |
|
66 | - * * `$context->injectFn(\Closure::fromCallable([$this, 'privateMethod']))` |
|
67 | - * |
|
68 | - * Note: the app container will be queried |
|
69 | - * |
|
70 | - * @param callable $fn |
|
71 | - * @throws ContainerExceptionInterface if at least one of the parameter can't be resolved |
|
72 | - * @throws Throwable any error the function invocation might cause |
|
73 | - * @return mixed|null the return value of the invoked function, if any |
|
74 | - * @since 20.0.0 |
|
75 | - */ |
|
76 | - public function injectFn(callable $fn); |
|
58 | + /** |
|
59 | + * Invoke the given callable and inject all parameters based on their types |
|
60 | + * and names |
|
61 | + * |
|
62 | + * Note: when used with methods, make sure they are public or use \Closure::fromCallable |
|
63 | + * to wrap the private method call, e.g. |
|
64 | + * * `$context->injectFn([$obj, 'publicMethod'])` |
|
65 | + * * `$context->injectFn([$this, 'publicMethod'])` |
|
66 | + * * `$context->injectFn(\Closure::fromCallable([$this, 'privateMethod']))` |
|
67 | + * |
|
68 | + * Note: the app container will be queried |
|
69 | + * |
|
70 | + * @param callable $fn |
|
71 | + * @throws ContainerExceptionInterface if at least one of the parameter can't be resolved |
|
72 | + * @throws Throwable any error the function invocation might cause |
|
73 | + * @return mixed|null the return value of the invoked function, if any |
|
74 | + * @since 20.0.0 |
|
75 | + */ |
|
76 | + public function injectFn(callable $fn); |
|
77 | 77 | } |
@@ -42,35 +42,35 @@ |
||
42 | 42 | * @since 6.0.0 |
43 | 43 | */ |
44 | 44 | interface IAppContainer extends ContainerInterface, IContainer { |
45 | - /** |
|
46 | - * used to return the appname of the set application |
|
47 | - * @return string the name of your application |
|
48 | - * @since 6.0.0 |
|
49 | - * @deprecated 20.0.0 |
|
50 | - */ |
|
51 | - public function getAppName(); |
|
45 | + /** |
|
46 | + * used to return the appname of the set application |
|
47 | + * @return string the name of your application |
|
48 | + * @since 6.0.0 |
|
49 | + * @deprecated 20.0.0 |
|
50 | + */ |
|
51 | + public function getAppName(); |
|
52 | 52 | |
53 | - /** |
|
54 | - * @return \OCP\IServerContainer |
|
55 | - * @since 6.0.0 |
|
56 | - * @deprecated 20.0.0 |
|
57 | - */ |
|
58 | - public function getServer(); |
|
53 | + /** |
|
54 | + * @return \OCP\IServerContainer |
|
55 | + * @since 6.0.0 |
|
56 | + * @deprecated 20.0.0 |
|
57 | + */ |
|
58 | + public function getServer(); |
|
59 | 59 | |
60 | - /** |
|
61 | - * @param string $middleWare |
|
62 | - * @return boolean |
|
63 | - * @since 6.0.0 |
|
64 | - * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware |
|
65 | - */ |
|
66 | - public function registerMiddleWare($middleWare); |
|
60 | + /** |
|
61 | + * @param string $middleWare |
|
62 | + * @return boolean |
|
63 | + * @since 6.0.0 |
|
64 | + * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware |
|
65 | + */ |
|
66 | + public function registerMiddleWare($middleWare); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Register a capability |
|
70 | - * |
|
71 | - * @param string $serviceName e.g. 'OCA\Files\Capabilities' |
|
72 | - * @since 8.2.0 |
|
73 | - * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability |
|
74 | - */ |
|
75 | - public function registerCapability($serviceName); |
|
68 | + /** |
|
69 | + * Register a capability |
|
70 | + * |
|
71 | + * @param string $serviceName e.g. 'OCA\Files\Capabilities' |
|
72 | + * @since 8.2.0 |
|
73 | + * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability |
|
74 | + */ |
|
75 | + public function registerCapability($serviceName); |
|
76 | 76 | } |
@@ -33,12 +33,12 @@ |
||
33 | 33 | * @since 7.0.0 |
34 | 34 | */ |
35 | 35 | class MultipleObjectsReturnedException extends \Exception implements IMapperException { |
36 | - /** |
|
37 | - * Constructor |
|
38 | - * @param string $msg the error message |
|
39 | - * @since 7.0.0 |
|
40 | - */ |
|
41 | - public function __construct($msg) { |
|
42 | - parent::__construct($msg); |
|
43 | - } |
|
36 | + /** |
|
37 | + * Constructor |
|
38 | + * @param string $msg the error message |
|
39 | + * @since 7.0.0 |
|
40 | + */ |
|
41 | + public function __construct($msg) { |
|
42 | + parent::__construct($msg); |
|
43 | + } |
|
44 | 44 | } |