Skip to content

Set interface instead of concrete class in the container config #1

@kpicaza

Description

@kpicaza

Is your feature request related to a problem? Please describe.
In the current version, that factory configures a concrete Doctrine\DBAL\Connection class, to respect the Dependency Inversión Principle it would be better to configure the Doctrine\DBAL\Driver\Connection.

Describe the solution you'd like
Set Doctrine\DBAL\Driver\Connection as a service name in the config provider instead of current Doctrine\DBAL\Connection.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions