* [misc] remove unused code.

This commit is contained in:
sunguangming
2025-09-28 08:21:31 +00:00
parent 63a476324e
commit 8c4f0c32e2
+15 -34
View File
@@ -3505,45 +3505,26 @@ class baseRouter
}
}
if(version_compare(PHP_VERSION, '8.2.0', '>='))
{
#[\AllowDynamicProperties] // https://www.php.net/manual/zh/class.allowdynamicproperties.php
class config
{
public function set(string $key, $value)
{
helper::setMember('config', $key, $value);
}
}
}
else
#[AllowDynamicProperties]
class config
{
/**
* config类。
* The config class.
* 设置成员变量,成员可以是'db.user'类似的格式。
* Set the value of a member. the member can be the format like db.user.
*
* @package framework
* <code>
* <?php
* $config->set('db.user', 'wwccss');
* ?>
* </code>
* @param string $key the key of the member
* @param mixed $value the value
* @access public
* @return void
*/
class config
public function set(string $key, $value)
{
/**
* 设置成员变量,成员可以是'db.user'类似的格式。
* Set the value of a member. the member can be the format like db.user.
*
* <code>
* <?php
* $config->set('db.user', 'wwccss');
* ?>
* </code>
* @param string $key the key of the member
* @param mixed $value the value
* @access public
* @return void
*/
public function set(string $key, $value)
{
helper::setMember('config', $key, $value);
}
helper::setMember('config', $key, $value);
}
}