/** * 查找已安装的模块 * @return array|\yii\db\ActiveRecord[] */ public function findInstalledModules() { return Module::find()->indexBy('id')->all(); }