We had this error display today when trying to deploy a staging site:
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
to fix this issue we connected to the machine via SSH and ran:
composer require doctrine/dbal --with-all-dependencies
This allowed it to install correctly but we were still getting the same error message, solution TBD…