From 3f3027f09cd7c25b7265128bc2f2f75c15db11d6 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 4 Aug 2021 01:18:30 +0800 Subject: [PATCH] modify --- System/Abstracts/BaseApplication.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index e5b71bde..ba65de28 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -167,7 +167,22 @@ abstract class BaseApplication extends Component } - /** + /** + * @param $name + * @return mixed + * @throws \ReflectionException + * @throws \Snowflake\Exception\NotFindClassException + */ + public function __get($name): mixed + { + if ($this->has($name)) { + return $this->get($name); + } + return parent::__get($name); // TODO: Change the autogenerated stub + } + + + /** * @param $config * * @throws