clockwork
clockwork copied to clipboard
Compatibility with Doctrine DBAL 3
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
This error appears only if there is already a SQLLogger
configured