mirror of
https://github.com/Karaka-Management/oms-ContractManagement.git
synced 2026-02-14 09:28:42 +00:00
rename module constants and fix some unit test bugs
This commit is contained in:
parent
0b5bc3092b
commit
4143eff4ec
|
|
@ -23,7 +23,7 @@ return [
|
||||||
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContractList',
|
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContractList',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::CONTRACT,
|
'state' => PermissionState::CONTRACT,
|
||||||
],
|
],
|
||||||
|
|
@ -34,7 +34,7 @@ return [
|
||||||
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContract',
|
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContract',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::CONTRACT,
|
'state' => PermissionState::CONTRACT,
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_PATH = __DIR__ . '/../';
|
public const PATH = __DIR__ . '/../';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module version.
|
* Module version.
|
||||||
|
|
@ -40,7 +40,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_VERSION = '1.0.0';
|
public const VERSION = '1.0.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module name.
|
* Module name.
|
||||||
|
|
@ -48,7 +48,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_NAME = 'ContractManagement';
|
public const NAME = 'ContractManagement';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module id.
|
* Module id.
|
||||||
|
|
@ -56,7 +56,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_ID = 1007900000;
|
public const ID = 1007900000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Providing.
|
* Providing.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user