PHPackages                             antstudiocz/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. antstudiocz/compiler-extension

ActiveLibrary

antstudiocz/compiler-extension
==============================

v3.0.2(3y ago)01.2kMITPHPPHP ^8.0

Since Apr 23Pushed 3y agoCompare

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

READMEChangelog (3)Dependencies (7)Versions (23)Used By (0)

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:

```
