From b6fed5da6a9fd47525b8226e94b8bf5bd2cf2dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 10 Sep 2020 15:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Controller.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/HttpServer/Controller.php b/HttpServer/Controller.php index 9d2044f5..7da9298a 100644 --- a/HttpServer/Controller.php +++ b/HttpServer/Controller.php @@ -42,7 +42,6 @@ class Controller extends Application { $this->app = Snowflake::app(); $this->goto = $this->app->goto; - parent::__construct($config); } @@ -106,19 +105,5 @@ class Controller extends Application return $this->request; } - /** - * @param $name - * @return mixed|null - * @throws Exception - */ - public function __get($name) - { - if (property_exists($this, $name)) { - return $this->$name; - } else if (method_exists($this, $name)) { - return $this->$name(); - } - return parent::__get($name); - } }