Deprecate TemplateManager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
8153bd00a5
commit
a9c089064b
|
@ -34,7 +34,6 @@ $l = \OC::$server->getL10N('files');
|
||||||
\OC::$server->getSearch()->registerProvider(File::class, array('apps' => array('files')));
|
\OC::$server->getSearch()->registerProvider(File::class, array('apps' => array('files')));
|
||||||
|
|
||||||
$templateManager = \OC_Helper::getFileTemplateManager();
|
$templateManager = \OC_Helper::getFileTemplateManager();
|
||||||
$templateManager->registerTemplate('text/html', 'core/templates/filetemplates/template.html');
|
|
||||||
$templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp');
|
$templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp');
|
||||||
$templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt');
|
$templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt');
|
||||||
$templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods');
|
$templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods');
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -24,6 +24,9 @@
|
||||||
|
|
||||||
namespace OC\Files\Type;
|
namespace OC\Files\Type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated 18.0.0
|
||||||
|
*/
|
||||||
class TemplateManager {
|
class TemplateManager {
|
||||||
protected $templates = array();
|
protected $templates = array();
|
||||||
|
|
||||||
|
@ -34,6 +37,7 @@ class TemplateManager {
|
||||||
/**
|
/**
|
||||||
* get the path of the template for a mimetype
|
* get the path of the template for a mimetype
|
||||||
*
|
*
|
||||||
|
* @deprecated 18.0.0
|
||||||
* @param string $mimetype
|
* @param string $mimetype
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
|
@ -48,6 +52,7 @@ class TemplateManager {
|
||||||
/**
|
/**
|
||||||
* get the template content for a mimetype
|
* get the template content for a mimetype
|
||||||
*
|
*
|
||||||
|
* @deprecated 18.0.0
|
||||||
* @param string $mimetype
|
* @param string $mimetype
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -189,6 +189,7 @@ class OC_Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated 18.0.0
|
||||||
* @return \OC\Files\Type\TemplateManager
|
* @return \OC\Files\Type\TemplateManager
|
||||||
*/
|
*/
|
||||||
static public function getFileTemplateManager() {
|
static public function getFileTemplateManager() {
|
||||||
|
|
Loading…
Reference in New Issue