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