You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TicketMessageObserver.php 409B

123456789101112131415
  1. <?php
  2. namespace domain\Ticket\TicketMessage\Event;
  3. use domain\Ticket\Ticket\TicketModule;
  4. use justcoded\yii2\eventlistener\observers\ActiveRecordObserver;
  5. use yii\db\AfterSaveEvent;
  6. class TicketMessageObserver extends ActiveRecordObserver
  7. {
  8. public function inserted(AfterSaveEvent $event)
  9. {
  10. TicketModule::getInstance()->getNotifier()->sendEmailAdminNewTicketMessage($event->sender);
  11. }
  12. }