public function update(AddressCreateOrUpdateEvent $event) { $addressModel = $event->getAddress(); $this->createOrUpdate($addressModel, $event); }
public function update(AddressCreateOrUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher) { $addressModel = $event->getAddress(); $this->createOrUpdate($addressModel, $event, $dispatcher); }