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: 2024-07-11 14:03:14 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']);
	}

}