Skip to content

Miltiple database connections #2

@grikdotnet

Description

@grikdotnet

It seems from Atlas\Symfony\DependencyInjection\Configuration and AtlasExtension classes, the connection profiles 'pdo', 'orm', 'cli' are hardcoded, a service identifier is predefined as "Atlas::class", and an injection like "public function __construct(Atlas $atlas)" is bound to the single DSN.

In the real world it is common to work with several databases. How can several instances of Atlas with different DSNs be injected?

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