改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user