-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea | ||
.DS_Store | ||
/vendor | ||
composer.lock | ||
/attachment | ||
/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "nancheng/pfinal-config", | ||
"authors": [ | ||
{ | ||
"name": "南丞", | ||
"email": "[email protected]", | ||
"homepage": "http://friday-go.cc/" | ||
} | ||
], | ||
"homepage": "https://github.com/Neroxiezi/pfinal-config", | ||
"license": "MIT", | ||
"keywords": [ | ||
"pfinal", | ||
"南丞", | ||
"Q哥", | ||
"php-config", | ||
"config", | ||
"pfinal-config" | ||
], | ||
"require": { | ||
"php": ">=5.4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"pf\\config\\": "src/" | ||
}, | ||
"files": [ | ||
"src/helper.php" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"tests\\": "tests" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "6.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="Unit Tests"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./app</directory> | ||
</whitelist> | ||
</filter> | ||
<php> | ||
<env name="RUN_MODE" value="TEST"/> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: nancheng | ||
* Date: 2019/2/12 | ||
* Time: 12:59 | ||
* | ||
* | ||
* _ooOoo_ | ||
* o8888888o | ||
* 88" . "88 | ||
* (| ^_^ |) | ||
* O\ = /O | ||
* ____/`---'\____ | ||
* .' \\| |// `. | ||
* / \\||| : |||// \ | ||
* / _||||| -:- |||||- \ | ||
* | | \\\ - /// | | | ||
* | \_| ''\---/'' | | | ||
* \ .-\__ `-` ___/-. / | ||
* ___`. .' /--.--\ `. . ___ | ||
* ."" '< `.___\_<|>_/___.' >'"". | ||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | | ||
* \ \ `-. \_ __\ /__ _/ .-` / / | ||
* ========`-.____`-.___\_____/___.-`____.-'======== | ||
* `=---=' | ||
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* 佛祖保佑 永无BUG 永不修改 | ||
* | ||
*/ | ||
|
||
namespace pf\config; | ||
|
||
use pf\config\build\Base; | ||
|
||
class Config | ||
{ | ||
protected static $link = null; | ||
|
||
public function __call($method, $params) | ||
{ | ||
return call_user_func_array([self::single(), $method], $params); | ||
} | ||
|
||
public static function single() | ||
{ | ||
if (is_null(self::$link)) { | ||
self::$link = new Base(); | ||
} | ||
return self::$link; | ||
} | ||
|
||
public static function __callStatic($name, $arguments) | ||
{ | ||
return call_user_func_array([self::single(), $name], $arguments); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: 运营部 | ||
* Date: 2019/2/12 | ||
* Time: 13:01 | ||
* | ||
* | ||
* _ooOoo_ | ||
* o8888888o | ||
* 88" . "88 | ||
* (| ^_^ |) | ||
* O\ = /O | ||
* ____/`---'\____ | ||
* .' \\| |// `. | ||
* / \\||| : |||// \ | ||
* / _||||| -:- |||||- \ | ||
* | | \\\ - /// | | | ||
* | \_| ''\---/'' | | | ||
* \ .-\__ `-` ___/-. / | ||
* ___`. .' /--.--\ `. . ___ | ||
* ."" '< `.___\_<|>_/___.' >'"". | ||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | | ||
* \ \ `-. \_ __\ /__ _/ .-` / / | ||
* ========`-.____`-.___\_____/___.-`____.-'======== | ||
* `=---=' | ||
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
* 佛祖保佑 永无BUG 永不修改 | ||
* | ||
*/ | ||
|
||
namespace pf\config\build; | ||
|
||
class Base | ||
{ | ||
|
||
} |
Empty file.