取消vendor文件夹的排除
This commit is contained in:
1 parent
55d4d7b9c8
commit
1eafa8f5c9
1279 files changed
+277858
-1
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: yunwuxin <448901948@qq.com>
|
||||
// +----------------------------------------------------------------------
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace think\log;
|
||||
|
||||
use think\Log;
|
||||
|
||||
/**
|
||||
* Class ChannelSet
|
||||
* @package think\log
|
||||
* @mixin Channel
|
||||
*/
|
||||
class ChannelSet
|
||||
{
|
||||
protected $log;
|
||||
protected $channels;
|
||||
|
||||
public function __construct(Log $log, array $channels)
|
||||
{
|
||||
$this->log = $log;
|
||||
$this->channels = $channels;
|
||||
}
|
||||
|
||||
public function __call($method, $arguments)
|
||||
{
|
||||
foreach ($this->channels as $channel) {
|
||||
$this->log->channel($channel)->{$method}(...$arguments);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user