Skip to content

Commit c98f3d6

Browse files
committed
chore: update Email Address usage
1 parent e07e2ed commit c98f3d6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

classes/ColdTrick/EventManager/Notifications.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
namespace ColdTrick\EventManager;
44

55
use Elgg\Email;
6-
use Elgg\Email\Address;
76
use Elgg\Notifications\NotificationEvent;
8-
use Elgg\Notifications\Notification;
7+
use Symfony\Component\Mime\Address;
98

109
/**
1110
* Notifications related callbacks
@@ -22,7 +21,6 @@ class Notifications {
2221
* @return void|\Elgg\Email
2322
*/
2423
public static function prepareEventRegistrationSender(\Elgg\Event $event) {
25-
2624
$email = $event->getValue();
2725
if (!$email instanceof Email) {
2826
return;
@@ -48,7 +46,6 @@ public static function prepareEventRegistrationSender(\Elgg\Event $event) {
4846
* @return void
4947
*/
5048
public static function sendAfterEventMail(\Elgg\Event $elgg_event): void {
51-
5249
$event = $elgg_event->getParam('event');
5350
if (!$event instanceof NotificationEvent) {
5451
return;

0 commit comments

Comments
 (0)