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