/** * @return Bootstrap * @since 2.1.0 */ public static function getBooster() { if (null === self::$_instance) { // Lets find inside current module $module = Yii::app()->getController()->getModule(); if ($module) { if ($module->hasComponent('booster')) { self::$_instance = $module->getComponent('booster'); } } // Still nothing? if (null === self::$_instance) { if (Yii::app()->hasComponent('booster')) { self::$_instance = Yii::app()->getComponent('booster'); } } } return self::$_instance; }