修改创建模块命令

This commit is contained in:
JaguarJack
2020-06-25 09:25:02 +08:00
parent fca8980715
commit 707070a06e
5 changed files with 129 additions and 178 deletions

View File

@@ -1,15 +1,13 @@
<?php
namespace {NAMESPACE};
use think\Service;
use catcher\ModuleService;
class {CLASS}Service extends Service
class {SERVICE} extends ModuleService
{
/**
*
* @return void
*/
public function boot()
{
}
public function loadRouteFrom()
{
// TODO: Implement loadRouteFrom() method.
return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
}
}