Classes of the Yii framework usually extend from one of the two base classes: yii\base\Object or yii\base\Component. These classes provide useful features that are added automatically to all classes extending from them.
The Object class provides the configuration and property feature. The Component class extends from Object and adds event handling and behaviors. Object is usually used for classes that represent basic data structures while Component is used for application components and other classes that implement higher logic.
Posted in: Yii