Allow one call by event
This commit is contained in:
@@ -34,7 +34,7 @@ class NotificationSubscriber extends BaseSubscriber implements EventSubscriberIn
|
||||
|
||||
public function handleEvent(GenericEvent $event, $event_name)
|
||||
{
|
||||
if (! $this->isExecuted()) {
|
||||
if (! $this->isExecuted($event_name)) {
|
||||
$this->logger->debug('Subscriber executed: '.__CLASS__.'::'.__METHOD__);
|
||||
$event_data = $this->getEventData($event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user