1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-01 14:44:56 +08:00
2021-02-13 18:21:42 +08:00

24 lines
512 B
PHP

<?php
namespace App\Listeners;
use App\Models\Review as ReviewModel;
use App\Services\Logic\Point\PointHistory as PointHistoryService;
use Phalcon\Events\Event as PhEvent;
class Review extends Listener
{
public function afterCreate(PhEvent $event, $source, ReviewModel $review)
{
$this->handleReviewPoint($review);
}
protected function handleReviewPoint(ReviewModel $review)
{
$service = new PointHistoryService();
$service->handleCourseReview($review);
}
}