mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 03:50:56 +08:00
22 lines
362 B
PHP
22 lines
362 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Phalcon\Config as PhConfig;
|
|
|
|
class Config extends Provider
|
|
{
|
|
|
|
protected $serviceName = 'config';
|
|
|
|
public function register()
|
|
{
|
|
$this->di->setShared($this->serviceName, function () {
|
|
|
|
$options = require config_path('config.php');
|
|
|
|
return new PhConfig($options);
|
|
});
|
|
}
|
|
|
|
} |