Hello,
When I want to use:
addDataSource(new DoctrineDataSource($entityManager)) I got this Error:
"Doctrine\DBAL\Logging\SQLLogger" not found
I checked your DBALDataSource class and you use Doctrine\DBAL\Logging\SQLLogger and use Doctrine\DBAL\Logging\LoggerChain
which are deprecated in doctrine/dbal.
This is the full code:
Clockwork::class => function(EntityManager $entityManager) {
$clockwork = new Clockwork();
new DoctrineDataSource($entityManager);
$clockwork->storage(new FileStorage(STORAGE_PATH . '/clockwork'));
$clockwork->addDataSource(new DoctrineDataSource($entityManager));
return $clockwork;
}
Hello, When I want to use:
addDataSource(new DoctrineDataSource($entityManager))
I got this Error:"Doctrine\DBAL\Logging\SQLLogger" not found
I checked your DBALDataSource class and you use Doctrine\DBAL\Logging\SQLLogger and use Doctrine\DBAL\Logging\LoggerChain which are deprecated in doctrine/dbal.This is the full code:
Best Regards