PHPackages                             grand-media/compiler-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. grand-media/compiler-extension

ActiveLibrary

grand-media/compiler-extension
==============================

v2.1.1(9y ago)010MITPHPPHP ^7.0

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/GrandMedia/compiler-extension)[ Packagist](https://packagist.org/packages/grand-media/compiler-extension)[ RSS](/packages/grand-media-compiler-extension/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (7)Versions (18)Used By (0)

> At this moment I don't have time, energy and money to maintain this project. But it's a shame so if you depend on this project and you want to become a sponsor or develop it further please don't hesitate to contact me. Otherwise, I am not able to guarantee bright future of this repo... :)

Enhanced CompilerExtension for Nette Framework
==============================================

[](#enhanced-compilerextension-for-nette-framework)

[![Build Status](https://camo.githubusercontent.com/81e82043f6ea8aa61f6ffb878bc63a8127b17723dab706bc3a7402ad7fa94744/68747470733a2f2f7472617669732d63692e6f72672f6164656972612f636f6d70696c65722d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/adeira/compiler-extension)

If you have more complicated project structure with a lot of bundles (DIC extensions), it's very common that you have to setup a lot of things and it may be quite difficult. But not with this extension. All you need is to use `Adeira\ConfigurableExtensionsExtension` instead of default `ExtensionsExtension` like this (probably in `bootstrap.php`):

```
$configurator->defaultExtensions['extensions'] = \Adeira\ConfigurableExtensionsExtension::class;
```

This new extension will take care of configuration files in your bundles. Next if you want to use custom config for extension, just use `provideConfig` method:

```
