ComponentTrait for yii2, that will allow you to extend your Object instance with behaviors and events functionality.