From 65116ae8e17ac472acf54b42c6a7ba1828bf85ed Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 28 Sep 2021 18:28:43 +0200 Subject: [PATCH] rename module constants and fix some unit test bugs --- Admin/Routes/Web/Shop.php | 2 +- Controller/Controller.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Admin/Routes/Web/Shop.php b/Admin/Routes/Web/Shop.php index 95241b6..1312d47 100755 --- a/Admin/Routes/Web/Shop.php +++ b/Admin/Routes/Web/Shop.php @@ -11,7 +11,7 @@ return [ 'dest' => '\Modules\Shop\Controller\ShopController:viewWelcome', 'verb' => RouteVerb::GET, 'permission' => [ - 'module' => ShopController::MODULE_NAME, + 'module' => ShopController::NAME, 'type' => PermissionType::READ, 'state' => PermissionState::SHOP, ], diff --git a/Controller/Controller.php b/Controller/Controller.php index d9220c0..29051b9 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -34,7 +34,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - public const MODULE_PATH = __DIR__ . '/../'; + public const PATH = __DIR__ . '/../'; /** * Module version. @@ -42,7 +42,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - public const MODULE_VERSION = '1.0.0'; + public const VERSION = '1.0.0'; /** * Module name. @@ -50,7 +50,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - public const MODULE_NAME = 'Shop'; + public const NAME = 'Shop'; /** * Module id. @@ -58,7 +58,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var int * @since 1.0.0 */ - public const MODULE_ID = 1007700000; + public const ID = 1007700000; /** * Providing.