-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete stale pending users closes #4069.
Add email notification when registration is deleted refs #2915.
- Loading branch information
Showing
11 changed files
with
142 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Zikula package. | ||
* | ||
* Copyright Zikula Foundation - https://ziku.la/ | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Zikula\UsersModule\Event; | ||
|
||
use Zikula\UsersModule\Entity\UserEntity; | ||
|
||
/** | ||
* Occurs after a registration record is deleted. This could occur as a result of the administrator deleting the | ||
* record through the approval/denial process, or it could happen because the registration request expired. This | ||
* event will not fire if a registration record is converted to a full user account record. Instead, a | ||
* `user.account.create` event will fire. This is a storage-level event, not a UI event. It should not be used for | ||
* UI-level actions such as redirects. | ||
* The subject of the event is set to the Uid being deleted. | ||
*/ | ||
class DeletedRegistrationEvent | ||
{ | ||
/** | ||
* @var UserEntity | ||
*/ | ||
private $user; | ||
|
||
/** | ||
* @var \DateTimeImmutable | ||
*/ | ||
private $date; | ||
|
||
public function __construct(UserEntity $user) | ||
{ | ||
$this->user = $user; | ||
$this->date = new \DateTimeImmutable('now'); | ||
} | ||
|
||
public function getUser(): UserEntity | ||
{ | ||
return $this->user; | ||
} | ||
|
||
public function getDate(): \DateTimeImmutable | ||
{ | ||
return $this->date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.