改名
This commit is contained in:
@@ -43,9 +43,9 @@ class GiiController extends GiiBase
|
||||
$managerName = str_replace(ucfirst($prefix), '', $managerName);
|
||||
|
||||
$class = '';
|
||||
$controller = $namespace . '\\' . $managerName . 'Controller';
|
||||
$controller = "$namespace\{$managerName}Controller";
|
||||
if (file_exists($path['path'] . '/' . $managerName . 'Controller.php')) {
|
||||
$class = new \ReflectionClass($controller);
|
||||
$class = Snowflake::getDi()->getReflect($controller);
|
||||
}
|
||||
|
||||
$controllerName = $managerName;
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ class GiiModel extends GiiBase
|
||||
|
||||
if (file_exists($modelPath['path'] . '/' . $managerName . '.php')) {
|
||||
try {
|
||||
$class = new \ReflectionClass($modelPath['namespace'] . '\\' . $managerName);
|
||||
$class = Snowflake::getDi()->getReflect("{$modelPath['namespace']}\{$managerName}");
|
||||
|
||||
$html = $this->getUseContent($class, $classFileName);
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user