summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-11 12:44:53 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-11 12:44:53 +0100
commit188d0e09b857e607b57b7686e95bbf0502359c2b (patch)
treedcd1fd2c38a81a7b99050d997092ab557011ce35 /lib/public/files
parentb8f7d85570f01a0d1baf3082b0d84b6bafc8ae8c (diff)
downloadnextcloud-server-188d0e09b857e607b57b7686e95bbf0502359c2b.tar.gz
nextcloud-server-188d0e09b857e607b57b7686e95bbf0502359c2b.zip
Add reset method to mimetype loader
Used to solve concurrency issues
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/imimetypeloader.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/files/imimetypeloader.php b/lib/public/files/imimetypeloader.php
index 24937ea9b86..6d00c4a0b31 100644
--- a/lib/public/files/imimetypeloader.php
+++ b/lib/public/files/imimetypeloader.php
@@ -56,4 +56,11 @@ interface IMimeTypeLoader {
* @since 8.2.0
*/
public function exists($mimetype);
+
+ /**
+ * Clear all loaded mimetypes, allow for re-loading
+ *
+ * @since 8.2.0
+ */
+ public function reset();
}