mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-21 19:22:45 +08:00
26 lines
467 B
PHP
26 lines
467 B
PHP
<?php
|
|
|
|
namespace App\Http\Api;
|
|
|
|
use Phalcon\DiInterface;
|
|
use Phalcon\Mvc\ModuleDefinitionInterface;
|
|
use Phalcon\Mvc\View;
|
|
|
|
class Module implements ModuleDefinitionInterface
|
|
{
|
|
|
|
public function registerAutoLoaders(DiInterface $di = null)
|
|
{
|
|
|
|
}
|
|
|
|
public function registerServices(DiInterface $di)
|
|
{
|
|
$di->setShared('view', function () {
|
|
$view = new View();
|
|
$view->disable();
|
|
return $view;
|
|
});
|
|
}
|
|
}
|