From a9c089064bd7e723f9118c372c599d11eb8a66f5 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 16 Oct 2019 09:54:17 +0200 Subject: Deprecate TemplateManager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Files/Type/TemplateManager.php | 5 +++++ lib/private/legacy/helper.php | 1 + 2 files changed, 6 insertions(+) (limited to 'lib') 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() { -- cgit v1.2.3