Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webchemistry/di-decorator

Nette decorator in CompilerExtension
https://github.com/webchemistry/di-decorator

Last synced: about 1 month ago
JSON representation

Nette decorator in CompilerExtension

Awesome Lists containing this project

README

        

## Nette decorator in CompilerExtension

Usage:

```php

use Nette\DI\CompilerExtension;
use WebChemistry\Decorator\Decorator;

class CustomExtension extends CompilerExtension {

public function beforeCompile() {
$decorator = new Decorator($this->getContainerBuilder());

$decorator->decorate(BaseGrid::class)
->addSetup('injectComponents')
->addTags(['tag']);
}

}

```