aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/AppInfo/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/AppInfo/Application.php')
-rw-r--r--apps/theming/lib/AppInfo/Application.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/AppInfo/Application.php b/apps/theming/lib/AppInfo/Application.php
index 0f567b4d0e4..48bf42252c7 100644
--- a/apps/theming/lib/AppInfo/Application.php
+++ b/apps/theming/lib/AppInfo/Application.php
@@ -25,12 +25,15 @@
namespace OCA\Theming\AppInfo;
use OCA\Theming\Capabilities;
+use OCA\Theming\Listener\BeforePreferenceListener;
use OCA\Theming\Listener\BeforeTemplateRenderedListener;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
+use OCP\Config\BeforePreferenceDeletedEvent;
+use OCP\Config\BeforePreferenceSetEvent;
class Application extends App implements IBootstrap {
public const APP_ID = 'theming';
@@ -42,6 +45,8 @@ class Application extends App implements IBootstrap {
public function register(IRegistrationContext $context): void {
$context->registerCapability(Capabilities::class);
$context->registerEventListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class);
+ $context->registerEventListener(BeforePreferenceSetEvent::class, BeforePreferenceListener::class);
+ $context->registerEventListener(BeforePreferenceDeletedEvent::class, BeforePreferenceListener::class);
}
public function boot(IBootContext $context): void {