Introduce a ConnectionParameters object to store database connection parameters

Created on 29 June 2025, 15 days ago

Problem/Motivation

Database connection configuration is stored in arrays that are more or less taken as is from info in the $databases array in settings.php.

This makes the entire management of these connection options a bit sparsed around, and static analysis struggling.

Proposed resolution

Introduce a ConnectionParameters object where configuration is read from settings.php (or programmatically), then sealed off for the rest of the request. Adjust code so that as much of the logic as possible determines the object before instatation (possibly, end up with a value object).

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component

database system

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024