vojtech-dobes/extensions-list

在配置文件中启用其他扩展的注册(适用于Nette框架)

1.1.0 2014-01-03 20:19 UTC

This package is not auto-updated.

Last update: 2024-09-14 12:32:42 UTC


README

在配置文件中启用其他扩展的注册

许可证

新BSD

依赖项

安装

  1. 从GitHub或通过Composer(vojtech-dobes/extensions-list)获取源代码。
  2. 注册为编译器扩展。
$configurator->onCompile[] = function ($configurator, $compiler) {
	$compiler->addExtension('extensions', new VojtechDobes\ExtensionsList);
};

用法

在适当的配置部分列出扩展

extensions:
	dibi: DibiNetteExtension
	redis: Kdyby\Extension\Redis\DI\RedisExtension

就是这样。