修改catchadmin根目录
This commit is contained in:
parent
e17846571c
commit
bcdf6cd9c7
@ -5,10 +5,11 @@ use think\helper\Arr;
|
||||
|
||||
class CatchAdmin
|
||||
{
|
||||
public const NAME = 'catch';
|
||||
public static $root = 'catch';
|
||||
|
||||
public const VERSION = '1.0.0';
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @time 2019年11月30日
|
||||
@ -16,7 +17,7 @@ class CatchAdmin
|
||||
*/
|
||||
public static function directory(): string
|
||||
{
|
||||
return app()->getRootPath() . self::NAME . DIRECTORY_SEPARATOR;
|
||||
return app()->getRootPath() . self::$root . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ class CreateModuleCommand extends Command
|
||||
$psr4 = $composer['autoload']['psr-4'];
|
||||
|
||||
foreach ($psr4 as $namespace => $des) {
|
||||
if ($des === CatchAdmin::NAME) {
|
||||
if ($des === CatchAdmin::$root) {
|
||||
$this->namespaces = $namespace . $this->module . '\\';
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user