people_sdk / module_app_profile
模块 People SDK:应用配置组件
Requires
- php: ~7 || ~8
- liberty_code/cache: ^1.0.
- liberty_code/config: ^1.0.
- liberty_code/di: ^1.0.
- liberty_code/framework: ^1.0.
- liberty_code/library: ^1.0.
- liberty_code/register: ^1.0.
- people_sdk/app_profile: ^1.0.
- people_sdk/library: ^1.0.
This package is auto-updated.
Last update: 2024-09-09 17:09:31 UTC
README
描述
库包含应用模块,用于实现应用配置组件,使用API应用配置功能,在应用上。应用被视为LibertyCode应用。
要求
- 脚本语言:PHP:版本 7 || 8
框架模块安装要求
模块仓库:liberty_code_module/validation:版本 1.0
- 模块验证(或等效)。
- 模块规则(或等效)。
模块仓库:liberty_code_module/datetime:版本 1.0
- 模块 datetime(或等效)。
模块仓库:liberty_code_module/handle_model:版本 1.0
- 模块属性(或等效)。
模块仓库:people_sdk/module_library:版本 1.0
- 模块请求(或等效)。
模块仓库:people_sdk/module_attribute:版本 1.0
- 模块类型(或等效)。
模块仓库:people_sdk/module_role:版本 1.0
- 模块权限(或等效)。
- 模块角色(或等效)。
其他模块实现
依赖注入配置
people_requisition_persistor
有关持久化器的详细信息,请参阅people_sdk/app_profile v1.0 框架库实现要求。
people_requisition_config.
安装
有几种可能的方法
Composer
要求
需要安装Composer。更多信息请访问:https://getcomposer.org.cn
命令:在项目根目录下移动
cd "<project_root_dir_path>"
命令:安装
php composer.phar require people_sdk/module_app_profile ["<version>"]
注意
包含供应商
如果项目使用Composer,则必须包含供应商
require_once('<project_root_dir_path>/vendor/autoload.php');
配置
安装命令允许在composer文件中添加
{ "require": { "people_sdk/module_app_profile": "<version>" } }
包含
下载
- 下载以下仓库。
- 将其放在仓库根目录。
包含源代码
require_once('<repository_root_dir_path>/include/Include.php');
应用安装
配置
配置:应用模块:"
在列表部分添加所需模块
以下是从Composer安装的YML配置格式示例
list: [ { path: "/vendor/people_sdk/module_app_profile/src/attribute", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } }, { path: "/vendor/people_sdk/module_app_profile/src/app", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } }, { path: "/vendor/people_sdk/module_app_profile/src/api", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } }, { path: "/vendor/people_sdk/module_app_profile/src/token", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } }, { path: "/vendor/people_sdk/module_app_profile/src/requisition", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } }, { path: "/vendor/people_sdk/module_app_profile/src/cache", config_parser: { type: "string_table_php", source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms", source_format_set_pattern: "<?php \\n%1$s", cache_parser_require: true, cache_file_parser_require: true } } ]
配置
应用参数配置
使用以下文件在您的模块中配置特定元素
<module_root_path>/config/ParamApp.php
可配置元素
配置应用配置属性工厂。
配置应用配置属性提供者。
配置应用配置工厂。
配置应用配置API密钥工厂。
配置应用配置令牌密钥工厂。
配置应用配置请求发送信息工厂。
配置应用配置缓存。
使用
待办事项