优化代码生成

This commit is contained in:
JaguarJack
2020-04-29 11:41:54 +08:00
parent f8fb57c9c6
commit b30e57bf01
4 changed files with 40 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ class Controller extends Factory
* @param $params
* @return bool|string|string[]
*/
protected function getContent($params)
public function getContent($params)
{
if (!$params['controller']) {
throw new FailedException('params has lost');
@@ -47,7 +47,7 @@ class Controller extends Factory
if (!$className) {
throw new FailedException('未填写控制器名称');
}
// parse model
[$model, $modelNamespace] = $this->parseFilename($params['model']);