Elcodi\Store\CartBundle\EventListener\SendOrderConfirmationEmailEventListener::sendOrderConfirmationEmail PHP Метод

sendOrderConfirmationEmail() публичный Метод

Send email
public sendOrderConfirmationEmail ( Elcodi\Component\Cart\Event\OrderOnCreatedEvent $event )
$event Elcodi\Component\Cart\Event\OrderOnCreatedEvent Event
    public function sendOrderConfirmationEmail(OrderOnCreatedEvent $event)
    {
        $order = $event->getOrder();
        $customer = $order->getCustomer();
        $this->sendEmail('order_confirmation', ['order' => $order, 'customer' => $customer], $customer->getEmail());
    }
SendOrderConfirmationEmailEventListener