@@ -36,146 +36,146 @@ |
||
36 | 36 | */ |
37 | 37 | class SystemConfig { |
38 | 38 | |
39 | - /** @var array */ |
|
40 | - protected $sensitiveValues = [ |
|
41 | - 'instanceid' => true, |
|
42 | - 'datadirectory' => true, |
|
43 | - 'dbname' => true, |
|
44 | - 'dbhost' => true, |
|
45 | - 'dbpassword' => true, |
|
46 | - 'dbuser' => true, |
|
47 | - 'mail_from_address' => true, |
|
48 | - 'mail_domain' => true, |
|
49 | - 'mail_smtphost' => true, |
|
50 | - 'mail_smtpname' => true, |
|
51 | - 'mail_smtppassword' => true, |
|
52 | - 'passwordsalt' => true, |
|
53 | - 'secret' => true, |
|
54 | - 'updater.secret' => true, |
|
55 | - 'trusted_proxies' => true, |
|
56 | - 'proxyuserpwd' => true, |
|
57 | - 'log.condition' => [ |
|
58 | - 'shared_secret' => true, |
|
59 | - ], |
|
60 | - 'license-key' => true, |
|
61 | - 'redis' => [ |
|
62 | - 'host' => true, |
|
63 | - 'password' => true, |
|
64 | - ], |
|
65 | - 'objectstore' => [ |
|
66 | - 'arguments' => [ |
|
67 | - // Legacy Swift (https://github.com/nextcloud/server/pull/17696#discussion_r341302207) |
|
68 | - 'options' => [ |
|
69 | - 'credentials' => [ |
|
70 | - 'key' => true, |
|
71 | - 'secret' => true, |
|
72 | - ] |
|
73 | - ], |
|
74 | - // S3 |
|
75 | - 'key' => true, |
|
76 | - 'secret' => true, |
|
77 | - // Swift v2 |
|
78 | - 'username' => true, |
|
79 | - 'password' => true, |
|
80 | - // Swift v3 |
|
81 | - 'user' => [ |
|
82 | - 'name' => true, |
|
83 | - 'password' => true, |
|
84 | - ], |
|
85 | - ], |
|
86 | - ], |
|
87 | - ]; |
|
88 | - |
|
89 | - /** @var Config */ |
|
90 | - private $config; |
|
91 | - |
|
92 | - public function __construct(Config $config) { |
|
93 | - $this->config = $config; |
|
94 | - } |
|
95 | - |
|
96 | - /** |
|
97 | - * Lists all available config keys |
|
98 | - * @return array an array of key names |
|
99 | - */ |
|
100 | - public function getKeys() { |
|
101 | - return $this->config->getKeys(); |
|
102 | - } |
|
103 | - |
|
104 | - /** |
|
105 | - * Sets a new system wide value |
|
106 | - * |
|
107 | - * @param string $key the key of the value, under which will be saved |
|
108 | - * @param mixed $value the value that should be stored |
|
109 | - */ |
|
110 | - public function setValue($key, $value) { |
|
111 | - $this->config->setValue($key, $value); |
|
112 | - } |
|
113 | - |
|
114 | - /** |
|
115 | - * Sets and deletes values and writes the config.php |
|
116 | - * |
|
117 | - * @param array $configs Associative array with `key => value` pairs |
|
118 | - * If value is null, the config key will be deleted |
|
119 | - */ |
|
120 | - public function setValues(array $configs) { |
|
121 | - $this->config->setValues($configs); |
|
122 | - } |
|
123 | - |
|
124 | - /** |
|
125 | - * Looks up a system wide defined value |
|
126 | - * |
|
127 | - * @param string $key the key of the value, under which it was saved |
|
128 | - * @param mixed $default the default value to be returned if the value isn't set |
|
129 | - * @return mixed the value or $default |
|
130 | - */ |
|
131 | - public function getValue($key, $default = '') { |
|
132 | - return $this->config->getValue($key, $default); |
|
133 | - } |
|
134 | - |
|
135 | - /** |
|
136 | - * Looks up a system wide defined value and filters out sensitive data |
|
137 | - * |
|
138 | - * @param string $key the key of the value, under which it was saved |
|
139 | - * @param mixed $default the default value to be returned if the value isn't set |
|
140 | - * @return mixed the value or $default |
|
141 | - */ |
|
142 | - public function getFilteredValue($key, $default = '') { |
|
143 | - $value = $this->getValue($key, $default); |
|
144 | - |
|
145 | - if (isset($this->sensitiveValues[$key])) { |
|
146 | - $value = $this->removeSensitiveValue($this->sensitiveValues[$key], $value); |
|
147 | - } |
|
148 | - |
|
149 | - return $value; |
|
150 | - } |
|
151 | - |
|
152 | - /** |
|
153 | - * Delete a system wide defined value |
|
154 | - * |
|
155 | - * @param string $key the key of the value, under which it was saved |
|
156 | - */ |
|
157 | - public function deleteValue($key) { |
|
158 | - $this->config->deleteKey($key); |
|
159 | - } |
|
160 | - |
|
161 | - /** |
|
162 | - * @param bool|array $keysToRemove |
|
163 | - * @param mixed $value |
|
164 | - * @return mixed |
|
165 | - */ |
|
166 | - protected function removeSensitiveValue($keysToRemove, $value) { |
|
167 | - if ($keysToRemove === true) { |
|
168 | - return IConfig::SENSITIVE_VALUE; |
|
169 | - } |
|
170 | - |
|
171 | - if (is_array($value)) { |
|
172 | - foreach ($keysToRemove as $keyToRemove => $valueToRemove) { |
|
173 | - if (isset($value[$keyToRemove])) { |
|
174 | - $value[$keyToRemove] = $this->removeSensitiveValue($valueToRemove, $value[$keyToRemove]); |
|
175 | - } |
|
176 | - } |
|
177 | - } |
|
178 | - |
|
179 | - return $value; |
|
180 | - } |
|
39 | + /** @var array */ |
|
40 | + protected $sensitiveValues = [ |
|
41 | + 'instanceid' => true, |
|
42 | + 'datadirectory' => true, |
|
43 | + 'dbname' => true, |
|
44 | + 'dbhost' => true, |
|
45 | + 'dbpassword' => true, |
|
46 | + 'dbuser' => true, |
|
47 | + 'mail_from_address' => true, |
|
48 | + 'mail_domain' => true, |
|
49 | + 'mail_smtphost' => true, |
|
50 | + 'mail_smtpname' => true, |
|
51 | + 'mail_smtppassword' => true, |
|
52 | + 'passwordsalt' => true, |
|
53 | + 'secret' => true, |
|
54 | + 'updater.secret' => true, |
|
55 | + 'trusted_proxies' => true, |
|
56 | + 'proxyuserpwd' => true, |
|
57 | + 'log.condition' => [ |
|
58 | + 'shared_secret' => true, |
|
59 | + ], |
|
60 | + 'license-key' => true, |
|
61 | + 'redis' => [ |
|
62 | + 'host' => true, |
|
63 | + 'password' => true, |
|
64 | + ], |
|
65 | + 'objectstore' => [ |
|
66 | + 'arguments' => [ |
|
67 | + // Legacy Swift (https://github.com/nextcloud/server/pull/17696#discussion_r341302207) |
|
68 | + 'options' => [ |
|
69 | + 'credentials' => [ |
|
70 | + 'key' => true, |
|
71 | + 'secret' => true, |
|
72 | + ] |
|
73 | + ], |
|
74 | + // S3 |
|
75 | + 'key' => true, |
|
76 | + 'secret' => true, |
|
77 | + // Swift v2 |
|
78 | + 'username' => true, |
|
79 | + 'password' => true, |
|
80 | + // Swift v3 |
|
81 | + 'user' => [ |
|
82 | + 'name' => true, |
|
83 | + 'password' => true, |
|
84 | + ], |
|
85 | + ], |
|
86 | + ], |
|
87 | + ]; |
|
88 | + |
|
89 | + /** @var Config */ |
|
90 | + private $config; |
|
91 | + |
|
92 | + public function __construct(Config $config) { |
|
93 | + $this->config = $config; |
|
94 | + } |
|
95 | + |
|
96 | + /** |
|
97 | + * Lists all available config keys |
|
98 | + * @return array an array of key names |
|
99 | + */ |
|
100 | + public function getKeys() { |
|
101 | + return $this->config->getKeys(); |
|
102 | + } |
|
103 | + |
|
104 | + /** |
|
105 | + * Sets a new system wide value |
|
106 | + * |
|
107 | + * @param string $key the key of the value, under which will be saved |
|
108 | + * @param mixed $value the value that should be stored |
|
109 | + */ |
|
110 | + public function setValue($key, $value) { |
|
111 | + $this->config->setValue($key, $value); |
|
112 | + } |
|
113 | + |
|
114 | + /** |
|
115 | + * Sets and deletes values and writes the config.php |
|
116 | + * |
|
117 | + * @param array $configs Associative array with `key => value` pairs |
|
118 | + * If value is null, the config key will be deleted |
|
119 | + */ |
|
120 | + public function setValues(array $configs) { |
|
121 | + $this->config->setValues($configs); |
|
122 | + } |
|
123 | + |
|
124 | + /** |
|
125 | + * Looks up a system wide defined value |
|
126 | + * |
|
127 | + * @param string $key the key of the value, under which it was saved |
|
128 | + * @param mixed $default the default value to be returned if the value isn't set |
|
129 | + * @return mixed the value or $default |
|
130 | + */ |
|
131 | + public function getValue($key, $default = '') { |
|
132 | + return $this->config->getValue($key, $default); |
|
133 | + } |
|
134 | + |
|
135 | + /** |
|
136 | + * Looks up a system wide defined value and filters out sensitive data |
|
137 | + * |
|
138 | + * @param string $key the key of the value, under which it was saved |
|
139 | + * @param mixed $default the default value to be returned if the value isn't set |
|
140 | + * @return mixed the value or $default |
|
141 | + */ |
|
142 | + public function getFilteredValue($key, $default = '') { |
|
143 | + $value = $this->getValue($key, $default); |
|
144 | + |
|
145 | + if (isset($this->sensitiveValues[$key])) { |
|
146 | + $value = $this->removeSensitiveValue($this->sensitiveValues[$key], $value); |
|
147 | + } |
|
148 | + |
|
149 | + return $value; |
|
150 | + } |
|
151 | + |
|
152 | + /** |
|
153 | + * Delete a system wide defined value |
|
154 | + * |
|
155 | + * @param string $key the key of the value, under which it was saved |
|
156 | + */ |
|
157 | + public function deleteValue($key) { |
|
158 | + $this->config->deleteKey($key); |
|
159 | + } |
|
160 | + |
|
161 | + /** |
|
162 | + * @param bool|array $keysToRemove |
|
163 | + * @param mixed $value |
|
164 | + * @return mixed |
|
165 | + */ |
|
166 | + protected function removeSensitiveValue($keysToRemove, $value) { |
|
167 | + if ($keysToRemove === true) { |
|
168 | + return IConfig::SENSITIVE_VALUE; |
|
169 | + } |
|
170 | + |
|
171 | + if (is_array($value)) { |
|
172 | + foreach ($keysToRemove as $keyToRemove => $valueToRemove) { |
|
173 | + if (isset($value[$keyToRemove])) { |
|
174 | + $value[$keyToRemove] = $this->removeSensitiveValue($valueToRemove, $value[$keyToRemove]); |
|
175 | + } |
|
176 | + } |
|
177 | + } |
|
178 | + |
|
179 | + return $value; |
|
180 | + } |
|
181 | 181 | } |
@@ -23,47 +23,47 @@ |
||
23 | 23 | */ |
24 | 24 | |
25 | 25 | return [ |
26 | - 'routes' => [ |
|
27 | - [ |
|
28 | - 'name' => 'Settings#addServer', |
|
29 | - 'url' => '/trusted-servers', |
|
30 | - 'verb' => 'POST' |
|
31 | - ], |
|
32 | - [ |
|
33 | - 'name' => 'Settings#removeServer', |
|
34 | - 'url' => '/trusted-servers/{id}', |
|
35 | - 'verb' => 'DELETE' |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'name' => 'Settings#autoAddServers', |
|
39 | - 'url' => '/auto-add-servers', |
|
40 | - 'verb' => 'POST' |
|
41 | - ], |
|
42 | - ], |
|
43 | - 'ocs' => [ |
|
44 | - // old endpoints, only used by Nextcloud and ownCloud |
|
45 | - [ |
|
46 | - 'name' => 'OCSAuthAPI#getSharedSecretLegacy', |
|
47 | - 'url' => '/api/v1/shared-secret', |
|
48 | - 'verb' => 'GET', |
|
49 | - ], |
|
50 | - [ |
|
51 | - 'name' => 'OCSAuthAPI#requestSharedSecretLegacy', |
|
52 | - 'url' => '/api/v1/request-shared-secret', |
|
53 | - 'verb' => 'POST', |
|
54 | - ], |
|
55 | - // new endpoints, published as public api |
|
56 | - [ |
|
57 | - 'name' => 'OCSAuthAPI#getSharedSecret', |
|
58 | - 'root' => '/cloud', |
|
59 | - 'url' => '/shared-secret', |
|
60 | - 'verb' => 'GET', |
|
61 | - ], |
|
62 | - [ |
|
63 | - 'name' => 'OCSAuthAPI#requestSharedSecret', |
|
64 | - 'root' => '/cloud', |
|
65 | - 'url' => '/shared-secret', |
|
66 | - 'verb' => 'POST', |
|
67 | - ], |
|
68 | - ], |
|
26 | + 'routes' => [ |
|
27 | + [ |
|
28 | + 'name' => 'Settings#addServer', |
|
29 | + 'url' => '/trusted-servers', |
|
30 | + 'verb' => 'POST' |
|
31 | + ], |
|
32 | + [ |
|
33 | + 'name' => 'Settings#removeServer', |
|
34 | + 'url' => '/trusted-servers/{id}', |
|
35 | + 'verb' => 'DELETE' |
|
36 | + ], |
|
37 | + [ |
|
38 | + 'name' => 'Settings#autoAddServers', |
|
39 | + 'url' => '/auto-add-servers', |
|
40 | + 'verb' => 'POST' |
|
41 | + ], |
|
42 | + ], |
|
43 | + 'ocs' => [ |
|
44 | + // old endpoints, only used by Nextcloud and ownCloud |
|
45 | + [ |
|
46 | + 'name' => 'OCSAuthAPI#getSharedSecretLegacy', |
|
47 | + 'url' => '/api/v1/shared-secret', |
|
48 | + 'verb' => 'GET', |
|
49 | + ], |
|
50 | + [ |
|
51 | + 'name' => 'OCSAuthAPI#requestSharedSecretLegacy', |
|
52 | + 'url' => '/api/v1/request-shared-secret', |
|
53 | + 'verb' => 'POST', |
|
54 | + ], |
|
55 | + // new endpoints, published as public api |
|
56 | + [ |
|
57 | + 'name' => 'OCSAuthAPI#getSharedSecret', |
|
58 | + 'root' => '/cloud', |
|
59 | + 'url' => '/shared-secret', |
|
60 | + 'verb' => 'GET', |
|
61 | + ], |
|
62 | + [ |
|
63 | + 'name' => 'OCSAuthAPI#requestSharedSecret', |
|
64 | + 'root' => '/cloud', |
|
65 | + 'url' => '/shared-secret', |
|
66 | + 'verb' => 'POST', |
|
67 | + ], |
|
68 | + ], |
|
69 | 69 | ]; |
@@ -36,15 +36,15 @@ |
||
36 | 36 | * @deprecated |
37 | 37 | */ |
38 | 38 | interface IOperationCompat { |
39 | - /** |
|
40 | - * Like onEvent, but used with events that are not based on |
|
41 | - * \OCP\EventDispatcher\Event. |
|
42 | - * |
|
43 | - * This method is introduced for compatibility reasons and will be removed |
|
44 | - * in 2023 again. |
|
45 | - * |
|
46 | - * @since 18.0.0 |
|
47 | - * @deprecated |
|
48 | - */ |
|
49 | - public function onEventCompat(string $eventName, $event, IRuleMatcher $ruleMatcher): void; |
|
39 | + /** |
|
40 | + * Like onEvent, but used with events that are not based on |
|
41 | + * \OCP\EventDispatcher\Event. |
|
42 | + * |
|
43 | + * This method is introduced for compatibility reasons and will be removed |
|
44 | + * in 2023 again. |
|
45 | + * |
|
46 | + * @since 18.0.0 |
|
47 | + * @deprecated |
|
48 | + */ |
|
49 | + public function onEventCompat(string $eventName, $event, IRuleMatcher $ruleMatcher): void; |
|
50 | 50 | } |
@@ -32,72 +32,72 @@ |
||
32 | 32 | * @since 9.1 |
33 | 33 | */ |
34 | 34 | interface IOperation { |
35 | - /** |
|
36 | - * returns a translated name to be presented in the web interface |
|
37 | - * |
|
38 | - * Example: "Automated tagging" (en), "Aŭtomata etikedado" (eo) |
|
39 | - * |
|
40 | - * @since 18.0.0 |
|
41 | - */ |
|
42 | - public function getDisplayName(): string; |
|
35 | + /** |
|
36 | + * returns a translated name to be presented in the web interface |
|
37 | + * |
|
38 | + * Example: "Automated tagging" (en), "Aŭtomata etikedado" (eo) |
|
39 | + * |
|
40 | + * @since 18.0.0 |
|
41 | + */ |
|
42 | + public function getDisplayName(): string; |
|
43 | 43 | |
44 | - /** |
|
45 | - * returns a translated, descriptive text to be presented in the web interface. |
|
46 | - * |
|
47 | - * It should be short and precise. |
|
48 | - * |
|
49 | - * Example: "Tag based automatic deletion of files after a given time." (en) |
|
50 | - * |
|
51 | - * @since 18.0.0 |
|
52 | - */ |
|
53 | - public function getDescription(): string; |
|
44 | + /** |
|
45 | + * returns a translated, descriptive text to be presented in the web interface. |
|
46 | + * |
|
47 | + * It should be short and precise. |
|
48 | + * |
|
49 | + * Example: "Tag based automatic deletion of files after a given time." (en) |
|
50 | + * |
|
51 | + * @since 18.0.0 |
|
52 | + */ |
|
53 | + public function getDescription(): string; |
|
54 | 54 | |
55 | - /** |
|
56 | - * returns the URL to the icon of the operator for display in the web interface. |
|
57 | - * |
|
58 | - * Usually, the implementation would utilize the `imagePath()` method of the |
|
59 | - * `\OCP\IURLGenerator` instance and simply return its result. |
|
60 | - * |
|
61 | - * Example implementation: return $this->urlGenerator->imagePath('myApp', 'cat.svg'); |
|
62 | - * |
|
63 | - * @since 18.0.0 |
|
64 | - */ |
|
65 | - public function getIcon(): string; |
|
55 | + /** |
|
56 | + * returns the URL to the icon of the operator for display in the web interface. |
|
57 | + * |
|
58 | + * Usually, the implementation would utilize the `imagePath()` method of the |
|
59 | + * `\OCP\IURLGenerator` instance and simply return its result. |
|
60 | + * |
|
61 | + * Example implementation: return $this->urlGenerator->imagePath('myApp', 'cat.svg'); |
|
62 | + * |
|
63 | + * @since 18.0.0 |
|
64 | + */ |
|
65 | + public function getIcon(): string; |
|
66 | 66 | |
67 | - /** |
|
68 | - * returns whether the operation can be used in the requested scope. |
|
69 | - * |
|
70 | - * Scope IDs are defined as constants in OCP\WorkflowEngine\IManager. At |
|
71 | - * time of writing these are SCOPE_ADMIN and SCOPE_USER. |
|
72 | - * |
|
73 | - * For possibly unknown future scopes the recommended behaviour is: if |
|
74 | - * user scope is permitted, the default behaviour should return `true`, |
|
75 | - * otherwise `false`. |
|
76 | - * |
|
77 | - * @since 18.0.0 |
|
78 | - */ |
|
79 | - public function isAvailableForScope(int $scope): bool; |
|
67 | + /** |
|
68 | + * returns whether the operation can be used in the requested scope. |
|
69 | + * |
|
70 | + * Scope IDs are defined as constants in OCP\WorkflowEngine\IManager. At |
|
71 | + * time of writing these are SCOPE_ADMIN and SCOPE_USER. |
|
72 | + * |
|
73 | + * For possibly unknown future scopes the recommended behaviour is: if |
|
74 | + * user scope is permitted, the default behaviour should return `true`, |
|
75 | + * otherwise `false`. |
|
76 | + * |
|
77 | + * @since 18.0.0 |
|
78 | + */ |
|
79 | + public function isAvailableForScope(int $scope): bool; |
|
80 | 80 | |
81 | - /** |
|
82 | - * Validates whether a configured workflow rule is valid. If it is not, |
|
83 | - * an `\UnexpectedValueException` is supposed to be thrown. |
|
84 | - * |
|
85 | - * @throws \UnexpectedValueException |
|
86 | - * @since 9.1 |
|
87 | - */ |
|
88 | - public function validateOperation(string $name, array $checks, string $operation): void; |
|
81 | + /** |
|
82 | + * Validates whether a configured workflow rule is valid. If it is not, |
|
83 | + * an `\UnexpectedValueException` is supposed to be thrown. |
|
84 | + * |
|
85 | + * @throws \UnexpectedValueException |
|
86 | + * @since 9.1 |
|
87 | + */ |
|
88 | + public function validateOperation(string $name, array $checks, string $operation): void; |
|
89 | 89 | |
90 | - /** |
|
91 | - * Is being called by the workflow engine when an event was triggered that |
|
92 | - * is configured for this operation. An evaluation whether the event |
|
93 | - * qualifies for this operation to run has still to be done by the |
|
94 | - * implementor by calling the RuleMatchers getMatchingOperations method |
|
95 | - * and evaluating the results. |
|
96 | - * |
|
97 | - * If the implementor is an IComplexOperation, this method will not be |
|
98 | - * called automatically. It can be used or left as no-op by the implementor. |
|
99 | - * |
|
100 | - * @since 18.0.0 |
|
101 | - */ |
|
102 | - public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatcher): void; |
|
90 | + /** |
|
91 | + * Is being called by the workflow engine when an event was triggered that |
|
92 | + * is configured for this operation. An evaluation whether the event |
|
93 | + * qualifies for this operation to run has still to be done by the |
|
94 | + * implementor by calling the RuleMatchers getMatchingOperations method |
|
95 | + * and evaluating the results. |
|
96 | + * |
|
97 | + * If the implementor is an IComplexOperation, this method will not be |
|
98 | + * called automatically. It can be used or left as no-op by the implementor. |
|
99 | + * |
|
100 | + * @since 18.0.0 |
|
101 | + */ |
|
102 | + public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatcher): void; |
|
103 | 103 | } |
@@ -36,12 +36,12 @@ |
||
36 | 36 | * @deprecated |
37 | 37 | */ |
38 | 38 | interface IEntityCompat extends IEntity { |
39 | - /** |
|
40 | - * Like prepareRuleMatcherCompat, but works with events that are not based |
|
41 | - * on \OCP\EventDispatcher\Event. |
|
42 | - * |
|
43 | - * @since 18.0.0 |
|
44 | - * @deprecated |
|
45 | - */ |
|
46 | - public function prepareRuleMatcherCompat(IRuleMatcher $ruleMatcher, string $eventName, $event): void; |
|
39 | + /** |
|
40 | + * Like prepareRuleMatcherCompat, but works with events that are not based |
|
41 | + * on \OCP\EventDispatcher\Event. |
|
42 | + * |
|
43 | + * @since 18.0.0 |
|
44 | + * @deprecated |
|
45 | + */ |
|
46 | + public function prepareRuleMatcherCompat(IRuleMatcher $ruleMatcher, string $eventName, $event): void; |
|
47 | 47 | } |
@@ -25,164 +25,164 @@ |
||
25 | 25 | use OCP\IUser; |
26 | 26 | |
27 | 27 | class TrashItem implements ITrashItem { |
28 | - /** @var ITrashBackend */ |
|
29 | - private $backend; |
|
30 | - /** @var string */ |
|
31 | - private $orignalLocation; |
|
32 | - /** @var int */ |
|
33 | - private $deletedTime; |
|
34 | - /** @var string */ |
|
35 | - private $trashPath; |
|
36 | - /** @var FileInfo */ |
|
37 | - private $fileInfo; |
|
38 | - /** @var IUser */ |
|
39 | - private $user; |
|
40 | - |
|
41 | - public function __construct( |
|
42 | - ITrashBackend $backend, |
|
43 | - string $originalLocation, |
|
44 | - int $deletedTime, |
|
45 | - string $trashPath, |
|
46 | - FileInfo $fileInfo, |
|
47 | - IUser $user |
|
48 | - ) { |
|
49 | - $this->backend = $backend; |
|
50 | - $this->orignalLocation = $originalLocation; |
|
51 | - $this->deletedTime = $deletedTime; |
|
52 | - $this->trashPath = $trashPath; |
|
53 | - $this->fileInfo = $fileInfo; |
|
54 | - $this->user = $user; |
|
55 | - } |
|
56 | - |
|
57 | - public function getTrashBackend(): ITrashBackend { |
|
58 | - return $this->backend; |
|
59 | - } |
|
60 | - |
|
61 | - public function getOriginalLocation(): string { |
|
62 | - return $this->orignalLocation; |
|
63 | - } |
|
64 | - |
|
65 | - public function getDeletedTime(): int { |
|
66 | - return $this->deletedTime; |
|
67 | - } |
|
68 | - |
|
69 | - public function getTrashPath(): string { |
|
70 | - return $this->trashPath; |
|
71 | - } |
|
72 | - |
|
73 | - public function isRootItem(): bool { |
|
74 | - return substr_count($this->getTrashPath(), '/') === 1; |
|
75 | - } |
|
76 | - |
|
77 | - public function getUser(): IUser { |
|
78 | - return $this->user; |
|
79 | - } |
|
80 | - |
|
81 | - public function getEtag() { |
|
82 | - return $this->fileInfo->getEtag(); |
|
83 | - } |
|
84 | - |
|
85 | - public function getSize($includeMounts = true) { |
|
86 | - return $this->fileInfo->getSize($includeMounts); |
|
87 | - } |
|
88 | - |
|
89 | - public function getMtime() { |
|
90 | - return $this->fileInfo->getMtime(); |
|
91 | - } |
|
92 | - |
|
93 | - public function getName() { |
|
94 | - return $this->fileInfo->getName(); |
|
95 | - } |
|
96 | - |
|
97 | - public function getInternalPath() { |
|
98 | - return $this->fileInfo->getInternalPath(); |
|
99 | - } |
|
100 | - |
|
101 | - public function getPath() { |
|
102 | - return $this->fileInfo->getPath(); |
|
103 | - } |
|
104 | - |
|
105 | - public function getMimetype() { |
|
106 | - return $this->fileInfo->getMimetype(); |
|
107 | - } |
|
108 | - |
|
109 | - public function getMimePart() { |
|
110 | - return $this->fileInfo->getMimePart(); |
|
111 | - } |
|
112 | - |
|
113 | - public function getStorage() { |
|
114 | - return $this->fileInfo->getStorage(); |
|
115 | - } |
|
116 | - |
|
117 | - public function getId() { |
|
118 | - return $this->fileInfo->getId(); |
|
119 | - } |
|
120 | - |
|
121 | - public function isEncrypted() { |
|
122 | - return $this->fileInfo->isEncrypted(); |
|
123 | - } |
|
124 | - |
|
125 | - public function getPermissions() { |
|
126 | - return $this->fileInfo->getPermissions(); |
|
127 | - } |
|
128 | - |
|
129 | - public function getType() { |
|
130 | - return $this->fileInfo->getType(); |
|
131 | - } |
|
132 | - |
|
133 | - public function isReadable() { |
|
134 | - return $this->fileInfo->isReadable(); |
|
135 | - } |
|
136 | - |
|
137 | - public function isUpdateable() { |
|
138 | - return $this->fileInfo->isUpdateable(); |
|
139 | - } |
|
140 | - |
|
141 | - public function isCreatable() { |
|
142 | - return $this->fileInfo->isCreatable(); |
|
143 | - } |
|
144 | - |
|
145 | - public function isDeletable() { |
|
146 | - return $this->fileInfo->isDeletable(); |
|
147 | - } |
|
148 | - |
|
149 | - public function isShareable() { |
|
150 | - return $this->fileInfo->isShareable(); |
|
151 | - } |
|
152 | - |
|
153 | - public function isShared() { |
|
154 | - return $this->fileInfo->isShared(); |
|
155 | - } |
|
28 | + /** @var ITrashBackend */ |
|
29 | + private $backend; |
|
30 | + /** @var string */ |
|
31 | + private $orignalLocation; |
|
32 | + /** @var int */ |
|
33 | + private $deletedTime; |
|
34 | + /** @var string */ |
|
35 | + private $trashPath; |
|
36 | + /** @var FileInfo */ |
|
37 | + private $fileInfo; |
|
38 | + /** @var IUser */ |
|
39 | + private $user; |
|
40 | + |
|
41 | + public function __construct( |
|
42 | + ITrashBackend $backend, |
|
43 | + string $originalLocation, |
|
44 | + int $deletedTime, |
|
45 | + string $trashPath, |
|
46 | + FileInfo $fileInfo, |
|
47 | + IUser $user |
|
48 | + ) { |
|
49 | + $this->backend = $backend; |
|
50 | + $this->orignalLocation = $originalLocation; |
|
51 | + $this->deletedTime = $deletedTime; |
|
52 | + $this->trashPath = $trashPath; |
|
53 | + $this->fileInfo = $fileInfo; |
|
54 | + $this->user = $user; |
|
55 | + } |
|
56 | + |
|
57 | + public function getTrashBackend(): ITrashBackend { |
|
58 | + return $this->backend; |
|
59 | + } |
|
60 | + |
|
61 | + public function getOriginalLocation(): string { |
|
62 | + return $this->orignalLocation; |
|
63 | + } |
|
64 | + |
|
65 | + public function getDeletedTime(): int { |
|
66 | + return $this->deletedTime; |
|
67 | + } |
|
68 | + |
|
69 | + public function getTrashPath(): string { |
|
70 | + return $this->trashPath; |
|
71 | + } |
|
72 | + |
|
73 | + public function isRootItem(): bool { |
|
74 | + return substr_count($this->getTrashPath(), '/') === 1; |
|
75 | + } |
|
76 | + |
|
77 | + public function getUser(): IUser { |
|
78 | + return $this->user; |
|
79 | + } |
|
80 | + |
|
81 | + public function getEtag() { |
|
82 | + return $this->fileInfo->getEtag(); |
|
83 | + } |
|
84 | + |
|
85 | + public function getSize($includeMounts = true) { |
|
86 | + return $this->fileInfo->getSize($includeMounts); |
|
87 | + } |
|
88 | + |
|
89 | + public function getMtime() { |
|
90 | + return $this->fileInfo->getMtime(); |
|
91 | + } |
|
92 | + |
|
93 | + public function getName() { |
|
94 | + return $this->fileInfo->getName(); |
|
95 | + } |
|
96 | + |
|
97 | + public function getInternalPath() { |
|
98 | + return $this->fileInfo->getInternalPath(); |
|
99 | + } |
|
100 | + |
|
101 | + public function getPath() { |
|
102 | + return $this->fileInfo->getPath(); |
|
103 | + } |
|
104 | + |
|
105 | + public function getMimetype() { |
|
106 | + return $this->fileInfo->getMimetype(); |
|
107 | + } |
|
108 | + |
|
109 | + public function getMimePart() { |
|
110 | + return $this->fileInfo->getMimePart(); |
|
111 | + } |
|
112 | + |
|
113 | + public function getStorage() { |
|
114 | + return $this->fileInfo->getStorage(); |
|
115 | + } |
|
116 | + |
|
117 | + public function getId() { |
|
118 | + return $this->fileInfo->getId(); |
|
119 | + } |
|
120 | + |
|
121 | + public function isEncrypted() { |
|
122 | + return $this->fileInfo->isEncrypted(); |
|
123 | + } |
|
124 | + |
|
125 | + public function getPermissions() { |
|
126 | + return $this->fileInfo->getPermissions(); |
|
127 | + } |
|
128 | + |
|
129 | + public function getType() { |
|
130 | + return $this->fileInfo->getType(); |
|
131 | + } |
|
132 | + |
|
133 | + public function isReadable() { |
|
134 | + return $this->fileInfo->isReadable(); |
|
135 | + } |
|
136 | + |
|
137 | + public function isUpdateable() { |
|
138 | + return $this->fileInfo->isUpdateable(); |
|
139 | + } |
|
140 | + |
|
141 | + public function isCreatable() { |
|
142 | + return $this->fileInfo->isCreatable(); |
|
143 | + } |
|
144 | + |
|
145 | + public function isDeletable() { |
|
146 | + return $this->fileInfo->isDeletable(); |
|
147 | + } |
|
148 | + |
|
149 | + public function isShareable() { |
|
150 | + return $this->fileInfo->isShareable(); |
|
151 | + } |
|
152 | + |
|
153 | + public function isShared() { |
|
154 | + return $this->fileInfo->isShared(); |
|
155 | + } |
|
156 | 156 | |
157 | - public function isMounted() { |
|
158 | - return $this->fileInfo->isMounted(); |
|
159 | - } |
|
157 | + public function isMounted() { |
|
158 | + return $this->fileInfo->isMounted(); |
|
159 | + } |
|
160 | 160 | |
161 | - public function getMountPoint() { |
|
162 | - return $this->fileInfo->getMountPoint(); |
|
163 | - } |
|
161 | + public function getMountPoint() { |
|
162 | + return $this->fileInfo->getMountPoint(); |
|
163 | + } |
|
164 | 164 | |
165 | - public function getOwner() { |
|
166 | - return $this->fileInfo->getOwner(); |
|
167 | - } |
|
165 | + public function getOwner() { |
|
166 | + return $this->fileInfo->getOwner(); |
|
167 | + } |
|
168 | 168 | |
169 | - public function getChecksum() { |
|
170 | - return $this->fileInfo->getChecksum(); |
|
171 | - } |
|
169 | + public function getChecksum() { |
|
170 | + return $this->fileInfo->getChecksum(); |
|
171 | + } |
|
172 | 172 | |
173 | - public function getExtension(): string { |
|
174 | - return $this->fileInfo->getExtension(); |
|
175 | - } |
|
173 | + public function getExtension(): string { |
|
174 | + return $this->fileInfo->getExtension(); |
|
175 | + } |
|
176 | 176 | |
177 | - public function getTitle(): string { |
|
178 | - return $this->getOriginalLocation(); |
|
179 | - } |
|
177 | + public function getTitle(): string { |
|
178 | + return $this->getOriginalLocation(); |
|
179 | + } |
|
180 | 180 | |
181 | - public function getCreationTime(): int { |
|
182 | - return $this->fileInfo->getCreationTime(); |
|
183 | - } |
|
181 | + public function getCreationTime(): int { |
|
182 | + return $this->fileInfo->getCreationTime(); |
|
183 | + } |
|
184 | 184 | |
185 | - public function getUploadTime(): int { |
|
186 | - return $this->fileInfo->getUploadTime(); |
|
187 | - } |
|
185 | + public function getUploadTime(): int { |
|
186 | + return $this->fileInfo->getUploadTime(); |
|
187 | + } |
|
188 | 188 | } |
@@ -33,47 +33,47 @@ |
||
33 | 33 | |
34 | 34 | class SetAcceptedStatus implements IRepairStep { |
35 | 35 | |
36 | - /** @var IDBConnection */ |
|
37 | - private $connection; |
|
36 | + /** @var IDBConnection */ |
|
37 | + private $connection; |
|
38 | 38 | |
39 | - /** @var IConfig */ |
|
40 | - private $config; |
|
39 | + /** @var IConfig */ |
|
40 | + private $config; |
|
41 | 41 | |
42 | 42 | |
43 | - public function __construct(IDBConnection $connection, IConfig $config) { |
|
44 | - $this->connection = $connection; |
|
45 | - $this->config = $config; |
|
46 | - } |
|
43 | + public function __construct(IDBConnection $connection, IConfig $config) { |
|
44 | + $this->connection = $connection; |
|
45 | + $this->config = $config; |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * Returns the step's name |
|
50 | - * |
|
51 | - * @return string |
|
52 | - * @since 9.1.0 |
|
53 | - */ |
|
54 | - public function getName(): string { |
|
55 | - return 'Set existing shares as accepted'; |
|
56 | - } |
|
48 | + /** |
|
49 | + * Returns the step's name |
|
50 | + * |
|
51 | + * @return string |
|
52 | + * @since 9.1.0 |
|
53 | + */ |
|
54 | + public function getName(): string { |
|
55 | + return 'Set existing shares as accepted'; |
|
56 | + } |
|
57 | 57 | |
58 | - /** |
|
59 | - * @param IOutput $output |
|
60 | - */ |
|
61 | - public function run(IOutput $output): void { |
|
62 | - if (!$this->shouldRun()) { |
|
63 | - return; |
|
64 | - } |
|
58 | + /** |
|
59 | + * @param IOutput $output |
|
60 | + */ |
|
61 | + public function run(IOutput $output): void { |
|
62 | + if (!$this->shouldRun()) { |
|
63 | + return; |
|
64 | + } |
|
65 | 65 | |
66 | - $query = $this->connection->getQueryBuilder(); |
|
67 | - $query |
|
68 | - ->update('share') |
|
69 | - ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED)) |
|
70 | - ->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY))); |
|
71 | - $query->execute(); |
|
72 | - } |
|
66 | + $query = $this->connection->getQueryBuilder(); |
|
67 | + $query |
|
68 | + ->update('share') |
|
69 | + ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED)) |
|
70 | + ->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY))); |
|
71 | + $query->execute(); |
|
72 | + } |
|
73 | 73 | |
74 | - protected function shouldRun() { |
|
75 | - $appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0'); |
|
76 | - return version_compare($appVersion, '1.10.1', '<'); |
|
77 | - } |
|
74 | + protected function shouldRun() { |
|
75 | + $appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0'); |
|
76 | + return version_compare($appVersion, '1.10.1', '<'); |
|
77 | + } |
|
78 | 78 | |
79 | 79 | } |
@@ -31,100 +31,100 @@ |
||
31 | 31 | |
32 | 32 | class VersionCheck { |
33 | 33 | |
34 | - /** @var IClientService */ |
|
35 | - private $clientService; |
|
36 | - |
|
37 | - /** @var IConfig */ |
|
38 | - private $config; |
|
39 | - |
|
40 | - /** |
|
41 | - * @param IClientService $clientService |
|
42 | - * @param IConfig $config |
|
43 | - */ |
|
44 | - public function __construct(IClientService $clientService, |
|
45 | - IConfig $config) { |
|
46 | - $this->clientService = $clientService; |
|
47 | - $this->config = $config; |
|
48 | - } |
|
49 | - |
|
50 | - |
|
51 | - /** |
|
52 | - * Check if a new version is available |
|
53 | - * |
|
54 | - * @return array|bool |
|
55 | - */ |
|
56 | - public function check() { |
|
57 | - // If this server is set to have no internet connection this is all not needed |
|
58 | - if (!$this->config->getSystemValueBool('has_internet_connection', true)) { |
|
59 | - return false; |
|
60 | - } |
|
61 | - |
|
62 | - // Look up the cache - it is invalidated all 30 minutes |
|
63 | - if (((int)$this->config->getAppValue('core', 'lastupdatedat') + 1800) > time()) { |
|
64 | - return json_decode($this->config->getAppValue('core', 'lastupdateResult'), true); |
|
65 | - } |
|
66 | - |
|
67 | - $updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.nextcloud.com/updater_server/'); |
|
68 | - |
|
69 | - $this->config->setAppValue('core', 'lastupdatedat', time()); |
|
70 | - |
|
71 | - if ($this->config->getAppValue('core', 'installedat', '') === '') { |
|
72 | - $this->config->setAppValue('core', 'installedat', microtime(true)); |
|
73 | - } |
|
74 | - |
|
75 | - $version = Util::getVersion(); |
|
76 | - $version['installed'] = $this->config->getAppValue('core', 'installedat'); |
|
77 | - $version['updated'] = $this->config->getAppValue('core', 'lastupdatedat'); |
|
78 | - $version['updatechannel'] = \OC_Util::getChannel(); |
|
79 | - $version['edition'] = ''; |
|
80 | - $version['build'] = \OC_Util::getBuild(); |
|
81 | - $version['php_major'] = PHP_MAJOR_VERSION; |
|
82 | - $version['php_minor'] = PHP_MINOR_VERSION; |
|
83 | - $version['php_release'] = PHP_RELEASE_VERSION; |
|
84 | - $versionString = implode('x', $version); |
|
85 | - |
|
86 | - //fetch xml data from updater |
|
87 | - $url = $updaterUrl . '?version=' . $versionString; |
|
88 | - |
|
89 | - $tmp = []; |
|
90 | - try { |
|
91 | - $xml = $this->getUrlContent($url); |
|
92 | - } catch (\Exception $e) { |
|
93 | - return false; |
|
94 | - } |
|
95 | - |
|
96 | - if ($xml) { |
|
97 | - $loadEntities = libxml_disable_entity_loader(true); |
|
98 | - $data = @simplexml_load_string($xml); |
|
99 | - libxml_disable_entity_loader($loadEntities); |
|
100 | - if ($data !== false) { |
|
101 | - $tmp['version'] = (string)$data->version; |
|
102 | - $tmp['versionstring'] = (string)$data->versionstring; |
|
103 | - $tmp['url'] = (string)$data->url; |
|
104 | - $tmp['web'] = (string)$data->web; |
|
105 | - $tmp['changes'] = isset($data->changes) ? (string)$data->changes : ''; |
|
106 | - $tmp['autoupdater'] = (string)$data->autoupdater; |
|
107 | - $tmp['eol'] = isset($data->eol) ? (string)$data->eol : '0'; |
|
108 | - } else { |
|
109 | - libxml_clear_errors(); |
|
110 | - } |
|
111 | - } |
|
112 | - |
|
113 | - // Cache the result |
|
114 | - $this->config->setAppValue('core', 'lastupdateResult', json_encode($tmp)); |
|
115 | - return $tmp; |
|
116 | - } |
|
117 | - |
|
118 | - /** |
|
119 | - * @codeCoverageIgnore |
|
120 | - * @param string $url |
|
121 | - * @return resource|string |
|
122 | - * @throws \Exception |
|
123 | - */ |
|
124 | - protected function getUrlContent($url) { |
|
125 | - $client = $this->clientService->newClient(); |
|
126 | - $response = $client->get($url); |
|
127 | - return $response->getBody(); |
|
128 | - } |
|
34 | + /** @var IClientService */ |
|
35 | + private $clientService; |
|
36 | + |
|
37 | + /** @var IConfig */ |
|
38 | + private $config; |
|
39 | + |
|
40 | + /** |
|
41 | + * @param IClientService $clientService |
|
42 | + * @param IConfig $config |
|
43 | + */ |
|
44 | + public function __construct(IClientService $clientService, |
|
45 | + IConfig $config) { |
|
46 | + $this->clientService = $clientService; |
|
47 | + $this->config = $config; |
|
48 | + } |
|
49 | + |
|
50 | + |
|
51 | + /** |
|
52 | + * Check if a new version is available |
|
53 | + * |
|
54 | + * @return array|bool |
|
55 | + */ |
|
56 | + public function check() { |
|
57 | + // If this server is set to have no internet connection this is all not needed |
|
58 | + if (!$this->config->getSystemValueBool('has_internet_connection', true)) { |
|
59 | + return false; |
|
60 | + } |
|
61 | + |
|
62 | + // Look up the cache - it is invalidated all 30 minutes |
|
63 | + if (((int)$this->config->getAppValue('core', 'lastupdatedat') + 1800) > time()) { |
|
64 | + return json_decode($this->config->getAppValue('core', 'lastupdateResult'), true); |
|
65 | + } |
|
66 | + |
|
67 | + $updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.nextcloud.com/updater_server/'); |
|
68 | + |
|
69 | + $this->config->setAppValue('core', 'lastupdatedat', time()); |
|
70 | + |
|
71 | + if ($this->config->getAppValue('core', 'installedat', '') === '') { |
|
72 | + $this->config->setAppValue('core', 'installedat', microtime(true)); |
|
73 | + } |
|
74 | + |
|
75 | + $version = Util::getVersion(); |
|
76 | + $version['installed'] = $this->config->getAppValue('core', 'installedat'); |
|
77 | + $version['updated'] = $this->config->getAppValue('core', 'lastupdatedat'); |
|
78 | + $version['updatechannel'] = \OC_Util::getChannel(); |
|
79 | + $version['edition'] = ''; |
|
80 | + $version['build'] = \OC_Util::getBuild(); |
|
81 | + $version['php_major'] = PHP_MAJOR_VERSION; |
|
82 | + $version['php_minor'] = PHP_MINOR_VERSION; |
|
83 | + $version['php_release'] = PHP_RELEASE_VERSION; |
|
84 | + $versionString = implode('x', $version); |
|
85 | + |
|
86 | + //fetch xml data from updater |
|
87 | + $url = $updaterUrl . '?version=' . $versionString; |
|
88 | + |
|
89 | + $tmp = []; |
|
90 | + try { |
|
91 | + $xml = $this->getUrlContent($url); |
|
92 | + } catch (\Exception $e) { |
|
93 | + return false; |
|
94 | + } |
|
95 | + |
|
96 | + if ($xml) { |
|
97 | + $loadEntities = libxml_disable_entity_loader(true); |
|
98 | + $data = @simplexml_load_string($xml); |
|
99 | + libxml_disable_entity_loader($loadEntities); |
|
100 | + if ($data !== false) { |
|
101 | + $tmp['version'] = (string)$data->version; |
|
102 | + $tmp['versionstring'] = (string)$data->versionstring; |
|
103 | + $tmp['url'] = (string)$data->url; |
|
104 | + $tmp['web'] = (string)$data->web; |
|
105 | + $tmp['changes'] = isset($data->changes) ? (string)$data->changes : ''; |
|
106 | + $tmp['autoupdater'] = (string)$data->autoupdater; |
|
107 | + $tmp['eol'] = isset($data->eol) ? (string)$data->eol : '0'; |
|
108 | + } else { |
|
109 | + libxml_clear_errors(); |
|
110 | + } |
|
111 | + } |
|
112 | + |
|
113 | + // Cache the result |
|
114 | + $this->config->setAppValue('core', 'lastupdateResult', json_encode($tmp)); |
|
115 | + return $tmp; |
|
116 | + } |
|
117 | + |
|
118 | + /** |
|
119 | + * @codeCoverageIgnore |
|
120 | + * @param string $url |
|
121 | + * @return resource|string |
|
122 | + * @throws \Exception |
|
123 | + */ |
|
124 | + protected function getUrlContent($url) { |
|
125 | + $client = $this->clientService->newClient(); |
|
126 | + $response = $client->get($url); |
|
127 | + return $response->getBody(); |
|
128 | + } |
|
129 | 129 | } |
130 | 130 |
@@ -31,34 +31,34 @@ |
||
31 | 31 | */ |
32 | 32 | interface IMenuAction { |
33 | 33 | |
34 | - /** |
|
35 | - * @since 14.0.0 |
|
36 | - * @return string |
|
37 | - */ |
|
38 | - public function getId(): string; |
|
34 | + /** |
|
35 | + * @since 14.0.0 |
|
36 | + * @return string |
|
37 | + */ |
|
38 | + public function getId(): string; |
|
39 | 39 | |
40 | - /** |
|
41 | - * @since 14.0.0 |
|
42 | - * @return string |
|
43 | - */ |
|
44 | - public function getLabel(): string; |
|
40 | + /** |
|
41 | + * @since 14.0.0 |
|
42 | + * @return string |
|
43 | + */ |
|
44 | + public function getLabel(): string; |
|
45 | 45 | |
46 | - /** |
|
47 | - * @since 14.0.0 |
|
48 | - * @return string |
|
49 | - */ |
|
50 | - public function getLink(): string; |
|
46 | + /** |
|
47 | + * @since 14.0.0 |
|
48 | + * @return string |
|
49 | + */ |
|
50 | + public function getLink(): string; |
|
51 | 51 | |
52 | - /** |
|
53 | - * @since 14.0.0 |
|
54 | - * @return int |
|
55 | - */ |
|
56 | - public function getPriority(): int; |
|
52 | + /** |
|
53 | + * @since 14.0.0 |
|
54 | + * @return int |
|
55 | + */ |
|
56 | + public function getPriority(): int; |
|
57 | 57 | |
58 | - /** |
|
59 | - * @since 14.0.0 |
|
60 | - * @return string |
|
61 | - */ |
|
62 | - public function render(): string; |
|
58 | + /** |
|
59 | + * @since 14.0.0 |
|
60 | + * @return string |
|
61 | + */ |
|
62 | + public function render(): string; |
|
63 | 63 | |
64 | 64 | } |