This commit is contained in:
2020-09-10 15:49:42 +08:00
parent 03f20ae4e3
commit 6271e8d47a
3 changed files with 36 additions and 1 deletions
+6
View File
@@ -99,6 +99,12 @@ class Controller extends Application
if (method_exists($this, $method)) {
return $this->$method();
}
$app = Snowflake::app();
if ($app->has($name)) {
return $app->get($name);
}
return parent::__get($name);
}