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

Compatibility with Doctrine DBAL 3 #678

Open
DominicDetta opened this issue Feb 9, 2024 · 1 comment
Open

Compatibility with Doctrine DBAL 3 #678

DominicDetta opened this issue Feb 9, 2024 · 1 comment

Comments

@DominicDetta
Copy link
Contributor

With Doctrine DBAL 3.0.0 the current DBALDataSource does not work because the method LoggerChain::addLogger has been removed and the class SQLLogger is deprecated.
The new way to implement logging is using Middleware.

The error obtained:

Fatal error: Uncaught Error: Call to undefined method Doctrine\DBAL\Logging\LoggerChain::addLogger() in /var/www/html/vendor/itsgoingd/clockwork/Clockwork/DataSource/DBALDataSource.php:39

I will try to create a working example in my project and create a PR if possible

@DominicDetta
Copy link
Contributor Author

This error appears only if there is already a SQLLogger configured

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