<?php declare(strict_types=1);
namespace MyPlugin\Subscriber;
use Momocode\MomoLoginRedirectSW6\Redirect\Event\RedirectActiveCheckEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class LoginRedirectSubscriber implements EventSubscriberInterface
public static function getSubscribedEvents(): array
RedirectActiveCheckEvent::class => 'onRedirectActiveCheck',
public function onRedirectActiveCheck(RedirectActiveCheckEvent $event): void
if ($event->getRoute() === 'frontend.home.page') {
$event->setIsActive(true);