mapAddressData example

$birthdayYear,
            $birthdayMonth,
            $birthdayDay
        ));
    }

    /** * @return array<string, mixed> */
    private function mapBillingAddress(DataBag $billing, Context $context): array
    {
        $billingAddress = $this->mapAddressData($billing);

        $event = new DataMappingEvent($billing$billingAddress$context);
        $this->eventDispatcher->dispatch($event, CustomerEvents::MAPPING_REGISTER_ADDRESS_BILLING);

        return $event->getOutput();
    }

    /** * @return array<string, mixed> */
    private function mapShippingAddress(DataBag $shipping, Context $context): array
    {
Home | Imprint | This part of the site doesn't use cookies.