diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-06 10:37:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-06 10:37:40 +0200 |
commit | abc8ff38cbbd9b951cf1d42dbda611ab7b7ab08f (patch) | |
tree | 1be533395c4084e77c071d59269caa11790545e7 /apps/admin_audit/lib | |
parent | 6d84160ba710e6ea4cf290f40d7bb924c35ad574 (diff) | |
download | nextcloud-server-abc8ff38cbbd9b951cf1d42dbda611ab7b7ab08f.tar.gz nextcloud-server-abc8ff38cbbd9b951cf1d42dbda611ab7b7ab08f.zip |
fix: Cleanup unused imports and some type deprecations
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/admin_audit/lib')
-rw-r--r-- | apps/admin_audit/lib/AppInfo/Application.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php index 7a4d2d6e3d1..1daf9f18ef0 100644 --- a/apps/admin_audit/lib/AppInfo/Application.php +++ b/apps/admin_audit/lib/AppInfo/Application.php @@ -33,9 +33,7 @@ declare(strict_types=1); */ namespace OCA\AdminAudit\AppInfo; -use Closure; use OC\Files\Filesystem; -use OC\Files\Node\File; use OC\Group\Manager as GroupManager; use OC\User\Session as UserSession; use OCA\AdminAudit\Actions\AppManagement; @@ -56,15 +54,12 @@ use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; -use OCP\Authentication\TwoFactorAuth\IProvider; use OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengeFailed; use OCP\Authentication\TwoFactorAuth\TwoFactorProviderChallengePassed; use OCP\Console\ConsoleEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\IConfig; use OCP\IGroupManager; -use OCP\IPreview; -use OCP\IServerContainer; use OCP\IUserSession; use OCP\Log\Audit\CriticalActionPerformedEvent; use OCP\Log\ILogFactory; @@ -73,8 +68,6 @@ use OCP\Share; use OCP\Util; use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; -use Symfony\Component\EventDispatcher\GenericEvent; class Application extends App implements IBootstrap { @@ -87,7 +80,7 @@ class Application extends App implements IBootstrap { public function register(IRegistrationContext $context): void { $context->registerService(IAuditLogger::class, function (ContainerInterface $c) { - return new AuditLogger($c->get(ILogFactory::class), $c->get(Iconfig::class)); + return new AuditLogger($c->get(ILogFactory::class), $c->get(IConfig::class)); }); $context->registerEventListener(CriticalActionPerformedEvent::class, CriticalActionPerformedEventListener::class); @@ -108,7 +101,7 @@ class Application extends App implements IBootstrap { * Register hooks in order to log them */ private function registerHooks(IAuditLogger $logger, - IServerContainer $serverContainer): void { + ContainerInterface $serverContainer): void { $this->userManagementHooks($logger, $serverContainer->get(IUserSession::class)); $this->groupHooks($logger, $serverContainer->get(IGroupManager::class)); $this->authHooks($logger); |