示例#1
0
 public function getOrderById(GetOrderByIdQuery $query)
 {
     $result = $this->viewRepository->getById($query->getId());
     $query->setResult($result);
 }
 public function notify(RequestVerifiedEvent $event)
 {
     $order = $this->repository->getById($event->getPayment()->getNumber());
     $message = \Swift_Message::newInstance($this->translator->trans('message.email_subject'), $this->engine->render(':order:email.html.twig', ['order' => $order]), 'html/text', 'utf-8');
     $this->mailer->send($message);
 }