mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 01:25:34 +08:00
drop config array access support (#163)
This commit is contained in:
@@ -9,7 +9,7 @@ use OneBot\V12\Config\Config;
|
|||||||
use ZM\Exception\ConfigException;
|
use ZM\Exception\ConfigException;
|
||||||
use ZM\Framework;
|
use ZM\Framework;
|
||||||
|
|
||||||
class ZMConfig implements \ArrayAccess
|
class ZMConfig
|
||||||
{
|
{
|
||||||
use Singleton;
|
use Singleton;
|
||||||
|
|
||||||
@@ -241,27 +241,6 @@ class ZMConfig implements \ArrayAccess
|
|||||||
return $this->holder;
|
return $this->holder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function offsetExists($offset): bool
|
|
||||||
{
|
|
||||||
return $this->get($offset) !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[\ReturnTypeWillChange]
|
|
||||||
public function offsetGet($offset)
|
|
||||||
{
|
|
||||||
return $this->get($offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function offsetSet($offset, $value): void
|
|
||||||
{
|
|
||||||
$this->set($offset, $value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function offsetUnset($offset): void
|
|
||||||
{
|
|
||||||
$this->set($offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取配置项的来源
|
* 获取配置项的来源
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user