修改创建模块命令
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user