修改创建模块命令
This commit is contained in:
@@ -9,5 +9,6 @@
|
||||
],
|
||||
"aliases": {},
|
||||
"files": [],
|
||||
"requires": []
|
||||
"requires": [],
|
||||
"enable": true
|
||||
}
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
// you should user `$router`
|
||||
// $router->get('index', 'controller@method');
|
||||
$router->group(function () use ($router){
|
||||
|
||||
});
|
||||
|
||||
|
@@ -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