Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DsnParser doesn't map scheme like before #125

Open
snapshotpl opened this issue Feb 15, 2024 · 0 comments
Open

DsnParser doesn't map scheme like before #125

snapshotpl opened this issue Feb 15, 2024 · 0 comments

Comments

@snapshotpl
Copy link
Contributor

snapshotpl commented Feb 15, 2024

In doctrine dbal 3, I had url starts with: mysql:// and doctrine correctly handle this connection string. But now, even with #124 I still cannot make a connection (pdo-mysql is correct right now).

Looks like missing predefined scheme mapping in DsnParser https://github.com/Roave/psr-container-doctrine/pull/124/files#diff-a0906b5aa460579706c33a67d2bed0b0b2085cf46ef55a7d7ba103cbe5cf4407R116

It will be nice to be able to confiure this map. I see two ways:

  1. Define map in config and pass to constructor.
  2. Get DsnParser from container and then I be able to make map by my own.
@snapshotpl snapshotpl changed the title DsnParser doen't map scheme like before DsnParser doesn't map scheme like before Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant