Skip to content

Conversation

@tyrsson
Copy link
Member

@tyrsson tyrsson commented Jan 9, 2026

Updates existing test
Signed-off-by: Joey Smith [email protected]

Signed-off-by: Joey Smith [email protected]

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA yes
House Keeping yes

Description

This delegates Adapter creation back to the phpdb package.

Reason:
Due to the way ConfigAggregator works and laminas component installer we have no way to control the order in which the providers are written to the config array for Mezzio. Since this change unifies adapter creation for both standard adapter creation (single adapter) or Named adapter config and adapter packages are only providing the underlying dependency instances it will no longer matter which order the packages are listed as in the config.

Note:
All dependencies are aliased to their respective interfaces and each adapter will be expected to provide the required mapping for each Driver instance they expose. The creation context hinges on which Driver instance is passed in the adapters configuration.

Updates existing test
Signed-off-by: Joey Smith <[email protected]>

Signed-off-by: Joey Smith <[email protected]>
@tyrsson tyrsson self-assigned this Jan 9, 2026
@tyrsson tyrsson requested a review from simon-mundy January 9, 2026 04:18
@tyrsson tyrsson added enhancement New feature or request qa Improvements in quality assurance of the project labels Jan 9, 2026
@tyrsson tyrsson added this to @phpdb Jan 9, 2026
@github-project-automation github-project-automation bot moved this to Todo in @phpdb Jan 9, 2026
@tyrsson tyrsson added this to the 0.6.0 milestone Jan 9, 2026
Copy link
Collaborator

@simon-mundy simon-mundy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff

@tyrsson tyrsson merged commit abf7549 into php-db:0.6.x Jan 9, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in @phpdb Jan 9, 2026
@tyrsson tyrsson deleted the reintroduce-adapterinterface-factory branch January 9, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request qa Improvements in quality assurance of the project

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants