mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修复config驱动
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Author: dongww <dongww@gmail.com>
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace think\config\driver;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 配置文件解析驱动接口
|
|
||||||
*
|
|
||||||
* @package think\config\driver
|
|
||||||
*/
|
|
||||||
interface DriverInterface
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* 解析配置文件或内容,并以数组形式返回
|
|
||||||
*
|
|
||||||
* @param string $config 配置文件路径或字符串
|
|
||||||
*
|
|
||||||
* @return array 以数组形式返回配置
|
|
||||||
*/
|
|
||||||
public function parse($config);
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace think\config\driver;
|
namespace think\config\driver;
|
||||||
|
|
||||||
class Ini implements DriverInterface
|
class Ini
|
||||||
{
|
{
|
||||||
public function parse($config)
|
public function parse($config)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace think\config\driver;
|
namespace think\config\driver;
|
||||||
|
|
||||||
class Xml implements DriverInterface
|
class Xml
|
||||||
{
|
{
|
||||||
public function parse($config)
|
public function parse($config)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user