public function mergeFiles($files, $config = [])
    {
        $configs = array_map(function ($f) { return require($f); }, $files);
        $configs[] = $config;
        return call_user_func_array('yii\helpers\ArrayHelper::merge', $configs);
    }