vojtech-dobes/extensions-list

Enables registration of other extensions in config file (for Nette Framework)

1.1.0 2014-01-03 20:19 UTC

README

Enables registration of other extensions in config file

License

New BSD

Dependencies

  • Nette Framework 2.0.5 (because of nette/nette#740)

Installation

  1. Get the source code from Github or via Composer (vojtech-dobes/extensions-list).
  2. Register as compiler extension.
$configurator->onCompile[] = function ($configurator, $compiler) {
    $compiler->addExtension('extensions', new VojtechDobes\ExtensionsList);
};

Usage

List extensions in appropriate config section:

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

That's it.