File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
apps/admin_audit/lib/AppInfo Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 6565use OCP \Log \ILogFactory ;
6666use OCP \Share ;
6767use OCP \Util ;
68+ use Psr \Container \ContainerInterface ;
6869use Psr \Log \LoggerInterface ;
6970use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
7071use Symfony \Component \EventDispatcher \GenericEvent ;
@@ -79,6 +80,10 @@ public function __construct() {
7980 }
8081
8182 public function register (IRegistrationContext $ context ): void {
83+ $ context ->registerService (LoggerInterface::class, function (ContainerInterface $ c ) {
84+ return $ this ->getLogger ($ c ->get (IConfig::class), $ c ->get (ILogFactory::class));
85+ });
86+
8287 $ context ->registerEventListener (CriticalActionPerformedEvent::class, CriticalActionPerformedEventListener::class);
8388 }
8489
You can’t perform that action at this time.
0 commit comments