We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 922264f commit 01c751eCopy full SHA for 01c751e
apps/files_sharing/lib/Listener/UserHomeSetupListener.php
@@ -23,21 +23,21 @@
23
* @template-implements IEventListener<UserHomeSetupEvent>
24
*/
25
class UserHomeSetupListener implements IEventListener {
26
- private bool $disabled = false;
+ private static bool $disabled = false;
27
public function __construct(
28
private readonly ShareRecipientUpdater $updater,
29
private readonly IUserConfig $userConfig,
30
) {
31
}
32
33
public function setDisabled(bool $disabled): void {
34
- $this->disabled = $disabled;
+ self::$disabled = $disabled;
35
36
public function handle(Event $event): void {
37
if (!$event instanceof UserHomeSetupEvent) {
38
return;
39
40
- if ($this->disabled) {
+ if (self::$disabled) {
41
42
43
0 commit comments