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.

23 lines
661B

  1. <?php
  2. namespace domain\Product\Rotating\Event;
  3. use domain\Product\Rotating\RotatingModule;
  4. use justcoded\yii2\eventlistener\observers\ActiveRecordObserver;
  5. use yii\base\ErrorException;
  6. class RotatingObserver extends ActiveRecordObserver
  7. {
  8. public function inserted(\yii\db\AfterSaveEvent $event)
  9. {
  10. //RotatingModule::getInstance()->getManager()->initializeRotatingInDistributionsIncoming($event->sender);
  11. }
  12. /**
  13. * @throws ErrorException
  14. */
  15. public function updated(\yii\db\AfterSaveEvent $event)
  16. {
  17. //RotatingModule::getInstance()->getManager()->initializeRotatingInDistributionsIncoming($event->sender);
  18. }
  19. }