Skip to content

Please give ConnectionFactory an interface #2133

@uncaught

Description

@uncaught

Feature Request

What

With your version 3 you made ConnectionFactory final, forcing us to wrap the service instead of extending it. This works fine, but there is no interface we could be using.

Why

We use a custom ConnectionFactory to inject additional services into our custom connection that we need.

Also we register some additional and complex database types in there that are not compatible with ConnectionFactory::initializeTypes.

How

Implementing an interface like this would already suffice:

interface ConnectionFactoryInterface {
    public function createConnection(array $params, ?Configuration $config = null, array $mappingTypes = []): Connection;
}

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions