Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 68 |
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\CMS\Controller\BackendController; |
| 16 | use Modules\CMS\Models\PermissionCategory; |
| 17 | use phpOMS\Account\PermissionType; |
| 18 | use phpOMS\Router\RouteVerb; |
| 19 | |
| 20 | return [ |
| 21 | '^.*/cms/application/list.*$' => [ |
| 22 | [ |
| 23 | 'dest' => '\Modules\CMS\Controller\BackendController:viewApplicationList', |
| 24 | 'verb' => RouteVerb::GET, |
| 25 | 'permission' => [ |
| 26 | 'module' => BackendController::NAME, |
| 27 | 'type' => PermissionType::READ, |
| 28 | 'state' => PermissionCategory::APPLICATION, |
| 29 | ], |
| 30 | ], |
| 31 | ], |
| 32 | '^.*/cms/application/page/list.*$' => [ |
| 33 | [ |
| 34 | 'dest' => '\Modules\CMS\Controller\BackendController:viewPageList', |
| 35 | 'verb' => RouteVerb::GET, |
| 36 | 'permission' => [ |
| 37 | 'module' => BackendController::NAME, |
| 38 | 'type' => PermissionType::READ, |
| 39 | 'state' => PermissionCategory::APPLICATION, |
| 40 | ], |
| 41 | ], |
| 42 | ], |
| 43 | '^.*/cms/application/page\?.*$' => [ |
| 44 | [ |
| 45 | 'dest' => '\Modules\CMS\Controller\BackendController:viewPage', |
| 46 | 'verb' => RouteVerb::GET, |
| 47 | 'permission' => [ |
| 48 | 'module' => BackendController::NAME, |
| 49 | 'type' => PermissionType::READ, |
| 50 | 'state' => PermissionCategory::APPLICATION, |
| 51 | ], |
| 52 | ], |
| 53 | ], |
| 54 | '^.*/cms/application/post.*$' => [ |
| 55 | [ |
| 56 | 'dest' => '\Modules\CMS\Controller\BackendController:viewApplicationPosts', |
| 57 | 'verb' => RouteVerb::GET, |
| 58 | 'permission' => [ |
| 59 | 'module' => BackendController::NAME, |
| 60 | 'type' => PermissionType::READ, |
| 61 | 'state' => PermissionCategory::APPLICATION, |
| 62 | ], |
| 63 | ], |
| 64 | ], |
| 65 | '^.*/cms/application/file.*$' => [ |
| 66 | [ |
| 67 | 'dest' => '\Modules\CMS\Controller\BackendController:viewApplicationFile', |
| 68 | 'verb' => RouteVerb::GET, |
| 69 | 'permission' => [ |
| 70 | 'module' => BackendController::NAME, |
| 71 | 'type' => PermissionType::READ, |
| 72 | 'state' => PermissionCategory::APPLICATION, |
| 73 | ], |
| 74 | ], |
| 75 | ], |
| 76 | '^.*/cms/application/create.*$' => [ |
| 77 | [ |
| 78 | 'dest' => '\Modules\CMS\Controller\BackendController:viewApplicationCreate', |
| 79 | 'verb' => RouteVerb::GET, |
| 80 | 'permission' => [ |
| 81 | 'module' => BackendController::NAME, |
| 82 | 'type' => PermissionType::CREATE, |
| 83 | 'state' => PermissionCategory::APPLICATION, |
| 84 | ], |
| 85 | ], |
| 86 | ], |
| 87 | ]; |