1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 19:22:45 +08:00
koogua 0336a54911 1.源文件增加版权信息
2.群组状态和课程协同
2021-06-13 15:49:47 +08:00

37 lines
821 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Http\Api;
use App\Services\Auth\Api as AppAuth;
use Phalcon\DiInterface;
use Phalcon\Mvc\ModuleDefinitionInterface;
use Phalcon\Mvc\View;
class Module implements ModuleDefinitionInterface
{
public function registerAutoLoaders(DiInterface $dependencyInjector = null)
{
}
public function registerServices(DiInterface $dependencyInjector)
{
$dependencyInjector->setShared('view', function () {
$view = new View();
$view->disable();
return $view;
});
$dependencyInjector->setShared('auth', function () {
return new AppAuth();
});
}
}