Request类的架构方法改为protected

This commit is contained in:
thinkphp
2016-10-14 16:28:26 +08:00
parent 3fdd4f1009
commit ba555eba00

View File

@@ -124,10 +124,10 @@ class Request
/** /**
* 架构函数 * 架构函数
* @access public * @access protected
* @param array $options 参数 * @param array $options 参数
*/ */
public function __construct($options = []) protected function __construct($options = [])
{ {
foreach ($options as $name => $item) { foreach ($options as $name => $item) {
if (property_exists($this, $name)) { if (property_exists($this, $name)) {