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.
|
- <?php
-
- namespace domain\User\UserProducer\Event;
-
- use justcoded\yii2\eventlistener\observers\ActiveRecordObserver;
- use domain\User\UserProducer\UserProducerModule;
- use yii\db\AfterSaveEvent;
-
- class PaymentObserver extends ActiveRecordObserver
- {
- public function inserted(AfterSaveEvent $event)
- {
- $payment = $event->sender;
- $userProducerModule = UserProducerModule::getInstance();
-
- $userProducerModule->updateCredit($payment);
- }
- }
|