webchemistry/di-decorator

There is no license information available for the latest version (v1.0) of this package.

v1.0 2019-01-10 19:06 UTC

This package is auto-updated.

Last update: 2020-01-11 01:51:17 UTC


README

Usage:


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']);
	}

}