mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge branch 'master' of https://github.com/top-think/think
# Conflicts: # tests/framework/thinkphp/library/think/config/driver/iniTest.php # thinkphp/library/think/config/driver/DriverInterface.php # thinkphp/library/think/config/driver/driver_interface.php
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;
|
||||
|
||||
class Ini implements DriverInterface
|
||||
class Ini
|
||||
{
|
||||
public function parse($config)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace think\config\driver;
|
||||
|
||||
class Xml implements DriverInterface
|
||||
class Xml
|
||||
{
|
||||
public function parse($config)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user