Skip to content

Commit

Permalink
Fix Signup Notifications (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Jan 17, 2025
1 parent 645bd06 commit 09a64fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Repository\UserRepository;
use App\Service\Notification\SignupNotificationManager;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;

Expand All @@ -18,10 +19,11 @@ class SentNewSignupNotificationHandler extends MbinMessageHandler
{
public function __construct(
readonly EntityManagerInterface $entityManager,
readonly KernelInterface $kernel,
private readonly UserRepository $userRepository,
private readonly SignupNotificationManager $signupNotificationManager,
) {
parent::__construct($entityManager);
parent::__construct($entityManager, $kernel);
}

public function __invoke(SentNewSignupNotificationMessage $message)
Expand Down

0 comments on commit 09a64fe

Please sign in to comment.