<?php declare(strict_types=1);
namespace Megasol\MegasolBase\Subscriber;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
use Shopware\Core\Framework\Event\BusinessEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class PasswordRecoverySubscriber implements EventSubscriberInterface
{
/**
* @var EntityRepositoryInterface
*/
private $customerRecoveryRepository;
public static function getSubscribedEvents(): array
{
// Return the events to listen to as array like this: <event to listen to> => <method to execute>
return [
BusinessEvents::CUSTOMER_ACCOUNT_RECOVER_REQUEST => 'onCustomerPasswordRecovery'
];
}
public function onCustomerPasswordRecovery(): void
{
/*
dump($_POST);
dump('This is a Event listener Carefully listen!!!!!');
dump('hehe');
die();
*/
}
}