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