aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Notification/Notifier.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Notification/Notifier.php')
-rw-r--r--apps/files/lib/Notification/Notifier.php39
1 files changed, 9 insertions, 30 deletions
diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php
index 89ddbb9b6ec..6acc312c126 100644
--- a/apps/files/lib/Notification/Notifier.php
+++ b/apps/files/lib/Notification/Notifier.php
@@ -25,36 +25,15 @@ use OCP\Notification\INotifier;
use OCP\Notification\UnknownNotificationException;
class Notifier implements INotifier, IDismissableNotifier {
- /** @var IFactory */
- protected $l10nFactory;
-
- /** @var IURLGenerator */
- protected $urlGenerator;
- /** @var TransferOwnershipMapper */
- private $mapper;
- /** @var IManager */
- private $notificationManager;
- /** @var IUserManager */
- private $userManager;
- /** @var ITimeFactory */
- private $timeFactory;
- /** @var IJobList */
- private $jobList;
-
- public function __construct(IFactory $l10nFactory,
- IURLGenerator $urlGenerator,
- TransferOwnershipMapper $mapper,
- IManager $notificationManager,
- IUserManager $userManager,
- IJobList $jobList,
- ITimeFactory $timeFactory) {
- $this->l10nFactory = $l10nFactory;
- $this->urlGenerator = $urlGenerator;
- $this->jobList = $jobList;
- $this->mapper = $mapper;
- $this->notificationManager = $notificationManager;
- $this->userManager = $userManager;
- $this->timeFactory = $timeFactory;
+ public function __construct(
+ protected IFactory $l10nFactory,
+ protected IURLGenerator $urlGenerator,
+ private TransferOwnershipMapper $mapper,
+ private IManager $notificationManager,
+ private IUserManager $userManager,
+ private IJobList $jobList,
+ private ITimeFactory $timeFactory,
+ ) {
}
public function getID(): string {