diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index 75eddade..cfb746eb 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -20,27 +20,14 @@ use OCP\IUserManager; use OCP\Notification\IManager; class APIController extends OCSController { - /** @var ITimeFactory */ - protected $timeFactory; - - /** @var IUserManager */ - protected $userManager; - - /** @var IManager */ - protected $notificationManager; - public function __construct( string $appName, IRequest $request, - ITimeFactory $timeFactory, - IUserManager $userManager, - IManager $notificationManager, + protected ITimeFactory $timeFactory, + protected IUserManager $userManager, + protected IManager $notificationManager, ) { parent::__construct($appName, $request); - - $this->timeFactory = $timeFactory; - $this->userManager = $userManager; - $this->notificationManager = $notificationManager; } /** diff --git a/lib/Controller/PushController.php b/lib/Controller/PushController.php index d3b55a3e..c3bdf2ea 100644 --- a/lib/Controller/PushController.php +++ b/lib/Controller/PushController.php @@ -32,35 +32,16 @@ use OCP\IUserSession; */ #[OpenAPI(scope: 'push')] class PushController extends OCSController { - /** @var IDBConnection */ - private $db; - - /** @var ISession */ - private $session; - - /** @var IUserSession */ - private $userSession; - - /** @var IProvider */ - private $tokenProvider; - - /** @var Manager */ - private $identityProof; - - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - IDBConnection $db, - ISession $session, - IUserSession $userSession, - IProvider $tokenProvider, - Manager $identityProof) { + protected IDBConnection $db, + protected ISession $session, + protected IUserSession $userSession, + protected IProvider $tokenProvider, + protected Manager $identityProof, + ) { parent::__construct($appName, $request); - - $this->db = $db; - $this->session = $session; - $this->userSession = $userSession; - $this->tokenProvider = $tokenProvider; - $this->identityProof = $identityProof; } /** diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index 5aab7816..39bede7c 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -20,19 +20,14 @@ use OCP\IConfig; use OCP\IRequest; class SettingsController extends OCSController { - protected IConfig $config; - protected SettingsMapper $settingsMapper; - protected string $userId; - - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - IConfig $config, - SettingsMapper $settingsMapper, - string $userId) { + protected IConfig $config, + protected SettingsMapper $settingsMapper, + protected string $userId, + ) { parent::__construct($appName, $request); - $this->config = $config; - $this->settingsMapper = $settingsMapper; - $this->userId = $userId; } /**