This repository was archived by the owner on Jun 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
hc config.json file
Mantas edited this page Dec 22, 2017
·
2 revisions
packageName - package name HCCore
sequence - order to read config files from packages
namespace - root package namespace
"general": {
"packageName": "HCCore",
"sequence": 0,
"namespace": "InteractiveSolutions\\HoneycombCore"
},
"formKey": "formNamespace"
"formData": {
"user": "InteractiveSolutions\\HoneycombCore\\Forms\\HCUserForm",
"password-reset": "InteractiveSolutions\\HoneycombCore\\Forms\\HCPasswordResetForm"
...
},
route - route name of meniu element _(admin.user.index) _
parent - parent menu item route name (admin.index)
translation - menu element translation
icon - font awesome icon
aclPermission - registered acl permission
"adminMenu": [
{
"route": "admin.user.index",
"parent": "admin.index",
"translation": "HCCore::user.page_title",
"icon": "fa-user",
"aclPermission": "interactivesolutions_honeycomb_user_list"
},
{
"route": "admin.acl.role.index",
"parent": "admin.user.index",
"translation": "HCCore::acl_roles.page_title",
"icon": "fa-user-md",
"aclPermission": "interactivesolutions_honeycomb_acl_role_list"
}
],
must set namespace of package main seeder file
"seeder": "InteractiveSolutions\\HoneycombCore\\Database\\Seeds\\HCCoreSeeder"
register route files
"routes": [
"Routes/routes.form-manager.php",
"Routes/routes.logs.php",
"Routes/routes.welcome.php"
]
permissions array contains of controller permissions
name - permission name (unique role name)
controller - controller namsepace
actions - array of given controller available permission actions
"acl": {
"permissions": [
{
"name": "admin.user",
"controller": "InteractiveSolutions\\HoneycombCore\\Http\\Controllers\\Admin\\HCUserController",
"actions": [
"interactivesolutions_honeycomb_user_list",
"interactivesolutions_honeycomb_user_create",
"interactivesolutions_honeycomb_user_update",
"interactivesolutions_honeycomb_user_delete",
"interactivesolutions_honeycomb_user_force_delete"
]
}
]
}