1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00
2020-04-03 19:20:46 +08:00

22 lines
376 B
PHP

<?php
namespace App\Providers;
use Phalcon\Config as PhalconConfig;
class Config extends Provider
{
protected $serviceName = 'config';
public function register()
{
$this->di->setShared($this->serviceName, function () {
$options = require config_path() . '/config.php';
return new PhalconConfig($options);
});
}
}