di icon indicating copy to clipboard operation
di copied to clipboard

Proposal to Add Reference::tag Method

Open nahakyuu opened this issue 2 years ago • 4 comments

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);

nahakyuu avatar Jul 19 '23 08:07 nahakyuu

Would you like to implement?

xepozz avatar Jul 19 '23 10:07 xepozz

Tags is Yii DI feature only. This proposal should be implemented in yiisoft/di.

vjik avatar Jul 19 '23 10:07 vjik

Can we use one of exist class for implement suggested method or create new?

vjik avatar Jul 19 '23 10:07 vjik

Maybe add a tag function which will use Reference::to('tag@'. $value);?

BoShurik avatar Jul 19 '23 11:07 BoShurik