您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }