hypejunction/elgg-di
Composer 安装命令:
composer require hypejunction/elgg-di
包简介
Dependency Injection container for Elgg
README 文档
README
Features
- PHP-DI integration for Elgg
Usage
Installation
- Place the plugin above all others in your plugin list and enable
Service Registration
- To register a new service, add
config/di.phpto your plugin root and return an array of services you want to register - You can access services via
elgg_di()->$service_name
Container Compilation
- To disable container compilation/caching - set
$CONFIG->environment = 'development'
Plugin Config
- You can set site-wide config by creating
oonfig/config.phpin your plugin, and returning an array of key value pairs. Note that plugins with higher priority with override config previously defined in other plugins.
统计信息
- 总下载量: 60
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2019-02-13