1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 04:21:27 +08:00
xiaochong0302 33fc75b9f8 1.精简chapter/lessons.volt
2.使用ServiceTrait精简代码
2023-12-27 16:05:23 +08:00

27 lines
532 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Listeners;
use App\Services\Service as AppService;
use App\Traits\Service as ServiceTrait;
use Phalcon\Mvc\User\Plugin as UserPlugin;
class Listener extends UserPlugin
{
use ServiceTrait;
public function getLogger($channel = 'listen')
{
$appService = new AppService();
return $appService->getLogger($channel);
}
}