Skip to content

Commit

Permalink
安装代码兼容最新swoft版本注解扫描
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Jan 8, 2019
1 parent d80bc7f commit 33bfcda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Console/Traits/MoveAdminConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ protected function appendConfigContent(Output $output)
$append .= <<<EOF
'components' => [
'custom' => [
'Swoft\\Admin',
'Swoft\\Blade'
'Swoft\\Admin\\',
'Swoft\\Blade\\'
],
],
EOF;
} else {
$output->writeln("检测到您配置文件中已添加过 <warning>components.custom</warning> 配置,请在安装结束后手动在 <warning>components.custom</warning> 数组里面追加以下命名空间 ");
$output->writeln('* <warning>Swoft\Admin</warning> ');
$output->writeln('* <warning>Swoft\\Blade</warning>'."\n");
$output->writeln('* <warning>Swoft\Admin\\</warning> ');
$output->writeln('* <warning>Swoft\\Blade\\</warning>'."\n");
}

$append .= $this->getDefaultConfig();
Expand Down
3 changes: 0 additions & 3 deletions src/Scaffold/stubs/controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ class {class}

$form->setId($id);

// 更改布局风格
$form->style(Form::STYLE_ROW);

{form}

return $form;
Expand Down

0 comments on commit 33bfcda

Please sign in to comment.