Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserEntityListener implements EventSubscriber
- {
- public function postPersist(LifecycleEventArgs $args)
- {
- $entity = $args->getEntity();
- if (!$entity instanceof UserInterface) {
- return;
- }
- $this->logger->alert('Debug hubspot: UserEntityListener postPersist');
- $this->eventDispatcher->dispatch(
- VopUserEvents::USER_CREATED,
- new UserEvent($entity)
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment