di
di copied to clipboard
Proposal to Add Reference::tag Method
I propose adding a new method, Reference::tag
// before
Reference::to('[email protected]');
Reference::to('tag@' . Yiisoft\Log\Target::class);
// after
Reference::tag('translation.categorySource');
Reference::tag(Yiisoft\Log\Target::class);
Would you like to implement?
Tags is Yii DI feature only. This proposal should be implemented in yiisoft/di.
Can we use one of exist class for implement suggested method or create new?
Maybe add a tag function which will use Reference::to('tag@'. $value);?