<?php declare(strict_types=1);
namespace Ecd\econdWebAnalytics\Core\Checkout\Customer\Event\Subscriber;
use Shopware\Core\Checkout\Customer\Event\CustomerRegisterEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class CustomerRegisterEventSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
CustomerRegisterEvent::class => 'onCustomerLoginEvent'
];
}
public function onCustomerLoginEvent(CustomerRegisterEvent $event)
{
$_SESSION['emos_RegisterRequestSend'] = true;
}
}