Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
35 / 35 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package Modules |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | use Modules\Tag\Controller\BackendController; |
| 16 | use Modules\Tag\Models\PermissionCategory; |
| 17 | use phpOMS\Account\PermissionType; |
| 18 | use phpOMS\Router\RouteVerb; |
| 19 | |
| 20 | return [ |
| 21 | '^.*/tag/create.*$' => [ |
| 22 | [ |
| 23 | 'dest' => '\Modules\Tag\Controller\BackendController:viewTagCreate', |
| 24 | 'verb' => RouteVerb::GET, |
| 25 | 'permission' => [ |
| 26 | 'module' => BackendController::NAME, |
| 27 | 'type' => PermissionType::CREATE, |
| 28 | 'state' => PermissionCategory::TAG, |
| 29 | ], |
| 30 | ], |
| 31 | ], |
| 32 | '^.*/tag/list.*$' => [ |
| 33 | [ |
| 34 | 'dest' => '\Modules\Tag\Controller\BackendController:viewTagList', |
| 35 | 'verb' => RouteVerb::GET, |
| 36 | 'permission' => [ |
| 37 | 'module' => BackendController::NAME, |
| 38 | 'type' => PermissionType::READ, |
| 39 | 'state' => PermissionCategory::TAG, |
| 40 | ], |
| 41 | ], |
| 42 | ], |
| 43 | '^.*/tag/single.*$' => [ |
| 44 | [ |
| 45 | 'dest' => '\Modules\Tag\Controller\BackendController:viewTagSingle', |
| 46 | 'verb' => RouteVerb::GET, |
| 47 | 'permission' => [ |
| 48 | 'module' => BackendController::NAME, |
| 49 | 'type' => PermissionType::READ, |
| 50 | 'state' => PermissionCategory::TAG, |
| 51 | ], |
| 52 | ], |
| 53 | ], |
| 54 | ]; |