vojtech-dobes / extensions-list
在配置文件中启用其他扩展的注册(适用于Nette框架)
1.1.0
2014-01-03 20:19 UTC
Requires
- nette/nette: ~2.0.5
This package is not auto-updated.
Last update: 2024-09-14 12:32:42 UTC
README
在配置文件中启用其他扩展的注册
许可证
依赖项
- Nette框架2.0.5(因为nette/nette#740)
安装
- 从GitHub或通过Composer(vojtech-dobes/extensions-list)获取源代码。
- 注册为编译器扩展。
$configurator->onCompile[] = function ($configurator, $compiler) { $compiler->addExtension('extensions', new VojtechDobes\ExtensionsList); };
用法
在适当的配置部分列出扩展
extensions:
dibi: DibiNetteExtension
redis: Kdyby\Extension\Redis\DI\RedisExtension
就是这样。