File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 4949use OCA \AdminAudit \Actions \UserManagement ;
5050use OCA \AdminAudit \Actions \Versions ;
5151use OCA \AdminAudit \Listener \CriticalActionPerformedEventListener ;
52+ use OCA \AdminAudit \Listener \GroupFolderActionListener ;
5253use OCP \App \ManagerEvent ;
5354use OCP \AppFramework \App ;
5455use OCP \AppFramework \Bootstrap \IBootContext ;
6566use OCP \Log \ILogFactory ;
6667use OCP \Share ;
6768use OCP \Util ;
69+ use Psr \Container \ContainerInterface ;
6870use Psr \Log \LoggerInterface ;
6971use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
7072use Symfony \Component \EventDispatcher \GenericEvent ;
@@ -79,6 +81,10 @@ public function __construct() {
7981 }
8082
8183 public function register (IRegistrationContext $ context ): void {
84+ $ context ->registerService (LoggerInterface::class, function (ContainerInterface $ c ) {
85+ return $ this ->getLogger ($ c ->get (IConfig::class), $ c ->get (ILogFactory::class));
86+ });
87+
8288 $ context ->registerEventListener (CriticalActionPerformedEvent::class, CriticalActionPerformedEventListener::class);
8389 }
8490
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace OCA \AdminAudit \Listener ;
4+
5+ class GroupFolderActionListener {
6+
7+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace OCP \Files \Events ;
4+
5+ class ACLChangedEvent {
6+
7+ }
You can’t perform that action at this time.
0 commit comments