File events refactoring
This commit is contained in:
@@ -36,12 +36,10 @@ class NotificationSubscriber extends BaseSubscriber implements EventSubscriberIn
|
||||
|
||||
public function handleEvent(GenericEvent $event, $eventName)
|
||||
{
|
||||
if (!$this->isExecuted($eventName)) {
|
||||
$this->logger->debug('Subscriber executed: ' . __METHOD__);
|
||||
$this->logger->debug('Subscriber executed: ' . __METHOD__);
|
||||
|
||||
$this->queueManager->push(NotificationJob::getInstance($this->container)
|
||||
->withParams($event, $eventName, get_class($event))
|
||||
);
|
||||
}
|
||||
$this->queueManager->push(NotificationJob::getInstance($this->container)
|
||||
->withParams($event, $eventName, get_class($event))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user