From 0c5164f9173f69356f908f48ea3f90b1f05a3cf5 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Wed, 18 May 2022 18:15:40 +0200 Subject: [PATCH] Cleans unecessary libs. --- lib/Controller/GroupController.php | 17 +---------------- lib/Controller/UserController.php | 13 ++----------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/lib/Controller/GroupController.php b/lib/Controller/GroupController.php index 63fde8e..eefc719 100644 --- a/lib/Controller/GroupController.php +++ b/lib/Controller/GroupController.php @@ -9,11 +9,8 @@ use OCP\AppFramework\Http\Response; use OCP\IConfig; use OCP\IGroupManager; use OCP\IRequest; -use OCP\IURLGenerator; use OCP\IUserManager; use OCP\IUserSession; -use OCP\Security\ISecureRandom; -use OCP\EventDispatcher\IEventDispatcher; use Psr\Log\LoggerInterface; use OCA\SCIMServiceProvider\Responses\SCIMListResponse; use OCA\SCIMServiceProvider\Responses\SCIMJSONResponse; @@ -21,14 +18,8 @@ use OCA\SCIMServiceProvider\Responses\SCIMErrorResponse; class GroupController extends ASCIMGroup { - /** @var IURLGenerator */ - protected $urlGenerator; /** @var LoggerInterface */ private $logger; - /** @var ISecureRandom */ - private $secureRandom; - /** @var IEventDispatcher */ - private $eventDispatcher; public function __construct(string $appName, IRequest $request, @@ -37,10 +28,7 @@ class GroupController extends ASCIMGroup { IGroupManager $groupManager, IUserSession $userSession, IAccountManager $accountManager, - IURLGenerator $urlGenerator, - LoggerInterface $logger, - ISecureRandom $secureRandom, - IEventDispatcher $eventDispatcher) { + LoggerInterface $logger) { parent::__construct($appName, $request, $userManager, @@ -49,10 +37,7 @@ class GroupController extends ASCIMGroup { $userSession, $accountManager); - $this->urlGenerator = $urlGenerator; $this->logger = $logger; - $this->secureRandom = $secureRandom; - $this->eventDispatcher = $eventDispatcher; } /** diff --git a/lib/Controller/UserController.php b/lib/Controller/UserController.php index a6119b3..af5b7f4 100644 --- a/lib/Controller/UserController.php +++ b/lib/Controller/UserController.php @@ -9,11 +9,9 @@ use OCP\AppFramework\Http\Response; use OCP\IConfig; use OCP\IGroupManager; use OCP\IRequest; -use OCP\IURLGenerator; use OCP\IUserManager; use OCP\IUserSession; use OCP\Security\ISecureRandom; -use OCP\EventDispatcher\IEventDispatcher; use Psr\Log\LoggerInterface; use OCA\SCIMServiceProvider\Responses\SCIMListResponse; use OCA\SCIMServiceProvider\Responses\SCIMJSONResponse; @@ -21,14 +19,11 @@ use OCA\SCIMServiceProvider\Responses\SCIMErrorResponse; class UserController extends ASCIMUser { - /** @var IURLGenerator */ - protected $urlGenerator; /** @var LoggerInterface */ private $logger; /** @var ISecureRandom */ private $secureRandom; - /** @var IEventDispatcher */ - private $eventDispatcher; + public function __construct(string $appName, IRequest $request, @@ -37,10 +32,8 @@ class UserController extends ASCIMUser { IGroupManager $groupManager, IUserSession $userSession, IAccountManager $accountManager, - IURLGenerator $urlGenerator, LoggerInterface $logger, - ISecureRandom $secureRandom, - IEventDispatcher $eventDispatcher) { + ISecureRandom $secureRandom) { parent::__construct($appName, $request, $userManager, @@ -49,10 +42,8 @@ class UserController extends ASCIMUser { $userSession, $accountManager); - $this->urlGenerator = $urlGenerator; $this->logger = $logger; $this->secureRandom = $secureRandom; - $this->eventDispatcher = $eventDispatcher; } /**