aboutsummaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-09 12:50:02 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-09 12:51:57 +0200
commit99e53672089b09bc1ed7a7bb5c83f8a552a5aa5e (patch)
tree405e29a103f8a4e3fd04716656e956f53738db45 /apps/admin_audit/lib
parentca939214bd8c7f481da7bda290f82508d6a5792a (diff)
downloadnextcloud-server-99e53672089b09bc1ed7a7bb5c83f8a552a5aa5e.tar.gz
nextcloud-server-99e53672089b09bc1ed7a7bb5c83f8a552a5aa5e.zip
Move to another namespace and class name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/admin_audit/lib')
-rw-r--r--apps/admin_audit/lib/AppInfo/Application.php6
-rw-r--r--apps/admin_audit/lib/Listener/CriticalActionPerformedEventListener.php (renamed from apps/admin_audit/lib/Listener/AuditEventListener.php)6
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php
index 47290e0525d..4ee49e7129b 100644
--- a/apps/admin_audit/lib/AppInfo/Application.php
+++ b/apps/admin_audit/lib/AppInfo/Application.php
@@ -49,7 +49,7 @@ use OCA\AdminAudit\Actions\Sharing;
use OCA\AdminAudit\Actions\Trashbin;
use OCA\AdminAudit\Actions\UserManagement;
use OCA\AdminAudit\Actions\Versions;
-use OCA\AdminAudit\Listener\AuditEventListener;
+use OCA\AdminAudit\Listener\CriticalActionPerformedEventListener;
use OCP\App\ManagerEvent;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
@@ -62,7 +62,7 @@ use OCP\IGroupManager;
use OCP\IPreview;
use OCP\IServerContainer;
use OCP\IUserSession;
-use OCP\Log\AuditEvent;
+use OCP\Log\Audit\CriticalActionPerformedEvent;
use OCP\Log\ILogFactory;
use OCP\Share;
use OCP\Util;
@@ -80,7 +80,7 @@ class Application extends App implements IBootstrap {
}
public function register(IRegistrationContext $context): void {
- $context->registerEventListener(AuditEvent::class, AuditEventListener::class);
+ $context->registerEventListener(CriticalActionPerformedEvent::class, CriticalActionPerformedEventListener::class);
}
public function boot(IBootContext $context): void {
diff --git a/apps/admin_audit/lib/Listener/AuditEventListener.php b/apps/admin_audit/lib/Listener/CriticalActionPerformedEventListener.php
index 0e2e5561858..75f7d86d421 100644
--- a/apps/admin_audit/lib/Listener/AuditEventListener.php
+++ b/apps/admin_audit/lib/Listener/CriticalActionPerformedEventListener.php
@@ -26,11 +26,11 @@ namespace OCA\AdminAudit\Listener;
use OCA\AdminAudit\Actions\Action;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
-use OCP\Log\AuditEvent;
+use OCP\Log\Audit\CriticalActionPerformedEvent;
-class AuditEventListener extends Action implements IEventListener {
+class CriticalActionPerformedEventListener extends Action implements IEventListener {
public function handle(Event $event): void {
- if (!($event instanceof AuditEvent)) {
+ if (!($event instanceof CriticalActionPerformedEvent)) {
return;
}