You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a conversation about modifying built-in services, @bencroker noted that we don't mention yii\base\Component::attachBehavior() as an alternative to the event-based approach.
Most classes in Craft ultimately inherit from this (including our core services), so it's possible to augment them without going via an intermediate event listener:
Product
Craft CMS
Description
In a conversation about modifying built-in services, @bencroker noted that we don't mention
yii\base\Component::attachBehavior()
as an alternative to the event-based approach.Most classes in Craft ultimately inherit from this (including our core services), so it's possible to augment them without going via an intermediate event listener:
This bears some similarities to our discussion of instance-level events.
The text was updated successfully, but these errors were encountered: