Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/webchemistry/di-decorator
- Owner: WebChemistry
- Created: 2019-01-10T19:05:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T19:43:10.000Z (almost 6 years ago)
- Last Synced: 2024-04-24T10:16:05.760Z (8 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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']);
}}
```