summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-16 11:47:38 +0200
committerGitHub <noreply@github.com>2019-10-16 11:47:38 +0200
commitf7319e139dfcfcd6309ce94cb514ebb58a4b49ad (patch)
tree099ec705fae01d0ee711f69de0e9fe3d3acff6c3 /lib
parent8153bd00a56add11c3032c0af4c7ace8ed0ce4a4 (diff)
parenta9c089064bd7e723f9118c372c599d11eb8a66f5 (diff)
downloadnextcloud-server-f7319e139dfcfcd6309ce94cb514ebb58a4b49ad.tar.gz
nextcloud-server-f7319e139dfcfcd6309ce94cb514ebb58a4b49ad.zip
Merge pull request #17559 from nextcloud/deprecate/template-manager
Deprecate TemplateManager
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Type/TemplateManager.php5
-rw-r--r--lib/private/legacy/helper.php1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/Type/TemplateManager.php b/lib/private/Files/Type/TemplateManager.php
index 8b30eb6b4e8..08c4593bf87 100644
--- a/lib/private/Files/Type/TemplateManager.php
+++ b/lib/private/Files/Type/TemplateManager.php
@@ -24,6 +24,9 @@
namespace OC\Files\Type;
+/**
+ * @deprecated 18.0.0
+ */
class TemplateManager {
protected $templates = array();
@@ -34,6 +37,7 @@ class TemplateManager {
/**
* get the path of the template for a mimetype
*
+ * @deprecated 18.0.0
* @param string $mimetype
* @return string|null
*/
@@ -48,6 +52,7 @@ class TemplateManager {
/**
* get the template content for a mimetype
*
+ * @deprecated 18.0.0
* @param string $mimetype
* @return string
*/
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php
index a5ed3a3e24b..6faba3ebee2 100644
--- a/lib/private/legacy/helper.php
+++ b/lib/private/legacy/helper.php
@@ -189,6 +189,7 @@ class OC_Helper {
}
/**
+ * @deprecated 18.0.0
* @return \OC\Files\Type\TemplateManager
*/
static public function getFileTemplateManager() {