改名
This commit is contained in:
@@ -48,7 +48,6 @@ class Redis implements StopHeartbeatCheck
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $config)
|
public function __construct(array $config)
|
||||||
{
|
{
|
||||||
var_dump($config);
|
|
||||||
$this->host = $config['host'];
|
$this->host = $config['host'];
|
||||||
$this->port = $config['port'];
|
$this->port = $config['port'];
|
||||||
$this->database = $config['database'];
|
$this->database = $config['database'];
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class Redis extends Component
|
|||||||
public function create(string $name, mixed $config): Closure
|
public function create(string $name, mixed $config): Closure
|
||||||
{
|
{
|
||||||
return static function () use ($name, $config) {
|
return static function () use ($name, $config) {
|
||||||
return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, $config);
|
return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, [$config]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user