|
1234567891011121314151617181920212223 |
- <?php
-
- namespace domain\Product\Rotating\Event;
-
- use domain\Product\Rotating\RotatingModule;
- use justcoded\yii2\eventlistener\observers\ActiveRecordObserver;
- use yii\base\ErrorException;
-
- class RotatingObserver extends ActiveRecordObserver
- {
- public function inserted(\yii\db\AfterSaveEvent $event)
- {
- //RotatingModule::getInstance()->getManager()->initializeRotatingInDistributionsIncoming($event->sender);
- }
-
- /**
- * @throws ErrorException
- */
- public function updated(\yii\db\AfterSaveEvent $event)
- {
- //RotatingModule::getInstance()->getManager()->initializeRotatingInDistributionsIncoming($event->sender);
- }
- }
|