mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think;
|
||||
|
||||
class Build
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
|
||||
use ArrayAccess;
|
||||
use ArrayIterator;
|
||||
use Countable;
|
||||
|
||||
@@ -29,7 +29,6 @@ class File extends SplFileObject
|
||||
*/
|
||||
protected function checkPath($path)
|
||||
{
|
||||
|
||||
if (is_dir($path)) {
|
||||
return true;
|
||||
}
|
||||
@@ -37,7 +36,7 @@ class File extends SplFileObject
|
||||
if (mkdir($path, 0777, true)) {
|
||||
return true;
|
||||
} else {
|
||||
$this->error = "目录 {$savepath} 创建失败!";
|
||||
$this->error = "目录 {$path} 创建失败!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,10 @@ class Log
|
||||
// 通知发送驱动
|
||||
protected static $alarm = null;
|
||||
|
||||
// 日志初始化
|
||||
/**
|
||||
* 日志初始化
|
||||
* @return void
|
||||
*/
|
||||
public static function init($config = [])
|
||||
{
|
||||
$type = isset($config['type']) ? $config['type'] : 'File';
|
||||
@@ -40,7 +43,10 @@ class Log
|
||||
APP_DEBUG && Log::record('[ LOG ] INIT ' . $type . ': ' . var_export($config, true), 'info');
|
||||
}
|
||||
|
||||
// 通知初始化
|
||||
/**
|
||||
* 通知初始化
|
||||
* @return void
|
||||
*/
|
||||
public static function alarm($config = [])
|
||||
{
|
||||
$type = isset($config['type']) ? $config['type'] : 'Email';
|
||||
@@ -128,7 +134,10 @@ class Log
|
||||
self::$alarm && self::$alarm->send($msg);
|
||||
}
|
||||
|
||||
// 静态调用
|
||||
/**
|
||||
* 静态调用
|
||||
* @return void
|
||||
*/
|
||||
public static function __callStatic($method, $args)
|
||||
{
|
||||
if (in_array($method, self::$type)) {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
|
||||
use think\paginator\Collection as PaginatorCollection;
|
||||
|
||||
abstract class Paginator
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
|
||||
use think\process\exception\Failed as ProcessFailedException;
|
||||
use think\process\exception\Timeout as ProcessTimeoutException;
|
||||
use think\process\pipes\Pipes;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think;
|
||||
|
||||
class Session
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\helper;
|
||||
|
||||
|
||||
class Debug extends Helper
|
||||
{
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\helper;
|
||||
|
||||
|
||||
use think\console\Output;
|
||||
use think\process\Builder as ProcessBuilder;
|
||||
use think\process as ThinkProcess;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\helper;
|
||||
|
||||
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
use think\console\helper\question\Question as OutputQuestion;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\helper;
|
||||
|
||||
|
||||
use think\console\command\Command;
|
||||
|
||||
class Set implements \IteratorAggregate
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\input;
|
||||
|
||||
|
||||
class Argument
|
||||
{
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\input;
|
||||
|
||||
|
||||
class Definition
|
||||
{
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\output;
|
||||
|
||||
|
||||
use think\console\Output;
|
||||
|
||||
class Nothing extends Output
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\output;
|
||||
|
||||
|
||||
class Stream
|
||||
{
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\console\output\formatter;
|
||||
|
||||
|
||||
class Stack
|
||||
{
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\controller;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\alarm;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\driver;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\driver;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: luofei614 <weibo.com/luofei614>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\driver;
|
||||
|
||||
/**
|
||||
* github: https://github.com/luofei614/SocketLog
|
||||
* @author luofei614<weibo.com/luofei614>
|
||||
*/
|
||||
namespace think\log\driver;
|
||||
|
||||
class Socket
|
||||
{
|
||||
public $port = 1116; //SocketLog 服务的http的端口号
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\driver;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\log\driver;
|
||||
|
||||
use think\Config;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
namespace think\process;
|
||||
|
||||
|
||||
class Utils
|
||||
{
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\process\exception;
|
||||
|
||||
|
||||
use think\Process;
|
||||
|
||||
class Timeout extends \RuntimeException
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\process\pipes;
|
||||
|
||||
|
||||
use think\Process;
|
||||
|
||||
class Unix extends Pipes
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think\process\pipes;
|
||||
|
||||
|
||||
use think\Process;
|
||||
|
||||
class Windows extends Pipes
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\view\driver;
|
||||
|
||||
use think\Exception;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\view\driver;
|
||||
|
||||
use think\Exception;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
|
||||
use think\Console;
|
||||
|
||||
class App
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: yunwuxin <448901948@qq.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think;
|
||||
|
||||
class Error
|
||||
|
||||
Reference in New Issue
Block a user