-
Notifications
You must be signed in to change notification settings - Fork 174
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
Use AbstractDriverMiddleware class instead of own implementation #810
Use AbstractDriverMiddleware class instead of own implementation #810
Conversation
…reusing common abstract class it's possible to unwind wrappedDriver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a very interesting approach! We should check if this limits compatibility with DBAL in any way, otherwise LGTM! 👍
The
I fail to understand how this change would be helpful in this case. There is no public API to get the wrapped driver, and checking whether |
While there is no public API (which is a miss of DBAL), if connection is instance of is |
I've raised issue about missing API: doctrine/dbal#6308 |
@@ -41,7 +41,7 @@ | |||
"symfony/security-http": "^4.4.20||^5.0.11||^6.0||^7.0" | |||
}, | |||
"require-dev": { | |||
"doctrine/dbal": "^2.13||^3.0", | |||
"doctrine/dbal": "^2.13||^3.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a proper discussion, we can’t just raise minimum versions.
Use AbstractDriverMiddleware class instead of own implementation, by reusing common abstract class it's possible to unwind wrappedDriver.
I have a case DamienHarper/auditor#184 when auditor & sentry don't play well.