diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-28 11:50:40 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-28 12:00:21 +0100 |
commit | 6c1b357973cc86f553ca83a9ed615e64c20d112f (patch) | |
tree | bc84697f50a3f701fcf7575fc5d4a1c388de3c0f /lib/public/AppFramework | |
parent | 2d46971199eecb49b96d5031bdbad25e448d0b27 (diff) | |
download | nextcloud-server-6c1b357973cc86f553ca83a9ed615e64c20d112f.tar.gz nextcloud-server-6c1b357973cc86f553ca83a9ed615e64c20d112f.zip |
Move TemplateProvider registration to boot context and make template type registration lazy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index 197275fb8e3..8bc21a545f6 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -31,6 +31,7 @@ namespace OCP\AppFramework\Bootstrap; use OCP\AppFramework\IAppContainer; use OCP\EventDispatcher\IEventDispatcher; +use OCP\Files\Template\ICustomTemplateProvider; use OCP\IContainer; /** @@ -196,4 +197,14 @@ interface IRegistrationContext { * @since 21.0.0 */ public function registerWellKnownHandler(string $class): void; + + /** + * Register a custom template provider class that is able to inject custom templates + * in addition to the user defined ones + * + * @param string $providerClass + * @psalm-param class-string<ICustomTemplateProvider> $providerClass + * @since 21.0.0 + */ + public function registerTemplateProvider(string $providerClass): void; } |