custom/plugins/econdWebAnalytics/src/Core/Checkout/Customer/Event/Subscriber/CustomerLoginEventSubscriber.php line 17

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Ecd\econdWebAnalytics\Core\Checkout\Customer\Event\Subscriber;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Shopware\Core\Checkout\Customer\Event\CustomerLoginEvent;
  5. class CustomerLoginEventSubscriber implements EventSubscriberInterface
  6. {
  7.     public static function getSubscribedEvents()
  8.     {
  9.         return [
  10.             CustomerLoginEvent::class => 'onCustomerLoginEvent'
  11.         ];
  12.     }
  13.     public function onCustomerLoginEvent(CustomerLoginEvent $event)
  14.     {
  15.         $_SESSION['emos_LogInRequestSend'] = true;
  16.     }
  17. }