| @@ 241-248 (lines=8) @@ | ||
| 238 | $this->commandBus->handle($emailCommand); |
|
| 239 | } |
|
| 240 | ||
| 241 | public function confirmUnregistration(ConfirmUnregistrationCommand $command) |
|
| 242 | { |
|
| 243 | $updateCommand = new UpdateResourceCommand(); |
|
| 244 | $updateCommand->class = '\BCRM\BackendBundle\Entity\Event\Unregistration'; |
|
| 245 | $updateCommand->id = $command->unregistration->getId(); |
|
| 246 | $updateCommand->data = array('confirmed' => 1); |
|
| 247 | $this->commandBus->handle($updateCommand); |
|
| 248 | } |
|
| 249 | ||
| 250 | public function unregisterTicket(UnregisterTicketCommand $command) |
|
| 251 | { |
|
| @@ 60-67 (lines=8) @@ | ||
| 57 | $this->logger = $logger; |
|
| 58 | } |
|
| 59 | ||
| 60 | public function onTicketMailSent(TicketMailSentEvent $event) |
|
| 61 | { |
|
| 62 | $updateCommand = new UpdateResourceCommand(); |
|
| 63 | $updateCommand->class = '\BCRM\BackendBundle\Entity\Event\Ticket'; |
|
| 64 | $updateCommand->id = $event->ticket->getId(); |
|
| 65 | $updateCommand->data = array('notified' => '1'); |
|
| 66 | $this->commandBus->handle($updateCommand); |
|
| 67 | } |
|
| 68 | ||
| 69 | public function onTicketDeleted(TicketDeletedEvent $event) |
|
| 70 | { |
|