From bde2e37a0be41167badc95afe870f2986f873c2e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 28 Sep 2021 18:28:36 +0200 Subject: [PATCH] rename module constants and fix some unit test bugs --- basics/routing.md | 2 +- datastorage/cache.md | 2 +- example_module/packages.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basics/routing.md b/basics/routing.md index 16cb9ef..1ffd81a 100644 --- a/basics/routing.md +++ b/basics/routing.md @@ -113,7 +113,7 @@ $router->route('foo/bar', null, RouteVerb::GET, 'APP_NAME', ORG_ID, ACCOUNT); 'dest' => CLOSURE/REFERENCE_STRING, 'verb' => VERB_1 | VERB_2, 'permission' => [ - 'module' => MODULE_NAME, + 'module' => NAME, 'type' => CREATE | READ | UPDATE | DELETE | PERMISSION, 'state' => MODULE_SPECIFIC_IDENTIFIER_FOR_THE_PERMISSION, ], diff --git a/datastorage/cache.md b/datastorage/cache.md index 3860df3..aaa4d81 100644 --- a/datastorage/cache.md +++ b/datastorage/cache.md @@ -17,7 +17,7 @@ In order to trigger a re-cache of stylesheets or javascript files make sure to u Example usage: ```php -$head->addAsset(AssetType::JS, $request->uri->getBase() . 'Modules/Media/Controller.js?v=' . self::MODULE_VERSION); +$head->addAsset(AssetType::JS, $request->uri->getBase() . 'Modules/Media/Controller.js?v=' . self::VERSION); ``` ## System Cache diff --git a/example_module/packages.md b/example_module/packages.md index 5d5bdf6..657762f 100644 --- a/example_module/packages.md +++ b/example_module/packages.md @@ -35,7 +35,7 @@ The `package.json` file contains information of the package. ```json { - "name": "{MODULE_NAME|RESOURCE_NAME|phpOMS|jsOMS|cssOMS}", + "name": "{NAME|RESOURCE_NAME|phpOMS|jsOMS|cssOMS}", "type": "Modules", "version": "1.0.1", "update": [