public function dispatchOnCustomerRegisteredEvent(CustomerInterface $customer)
    {
        $event = new CustomerRegisterEvent($customer);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::CUSTOMER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnCustomerRegisteredEvent(CustomerInterface $customer)
    {
        $event = new CustomerRegisterEvent($customer);
        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiUserEvents::CUSTOMER_REGISTER,
                $event
            );

        return $this;
    }
public function dispatchOnCustomerRegisteredEvent ( CustomerInterface $ customer ) { $ event = new CustomerRegisterEvent ( $ customer ) ; $ this -> eventDispatcher -> dispatch ( ElcodiUserEvents :: CUSTOMER_REGISTER , $ event ) ; return $ this ; }
Dispatch customer created event.

@param CustomerInterface $customer Customer registered

@return $this Self object
Dispatch customer created event .