aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php')
-rw-r--r--apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php b/apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php
index 8261cdb87de..709d7bacd4a 100644
--- a/apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php
+++ b/apps/files_sharing/lib/Event/BeforeTemplateRenderedEvent.php
@@ -23,19 +23,14 @@ class BeforeTemplateRenderedEvent extends Event {
*/
public const SCOPE_PUBLIC_SHARE_AUTH = 'publicShareAuth';
- /** @var IShare */
- private $share;
- /** @var string|null */
- private $scope;
-
/**
* @since 20.0.0
*/
- public function __construct(IShare $share, ?string $scope = null) {
+ public function __construct(
+ private IShare $share,
+ private ?string $scope = null,
+ ) {
parent::__construct();
-
- $this->share = $share;
- $this->scope = $scope;
}
/**