thrown in C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\vendor\doctrine\orm\lib\Doctrine\ORM\Configuration.php on line 175 [Mon Dec 5 09:09:11 2022] [::1]:62687 [200]: GET /listar-cursos.php - Uncaught LogicException: The annotation metadata driver cannot be enabled because the "doctrine/annotations" library is not installed. Please run "composer require doctrine/annotations" or choose a different metadata driver. in C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\vendor\doctrine\orm\lib\Doctrine\ORM\Configuration.php:175 Stack trace:
#0 C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php(92): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\src\Infra\EntityManagerCreator.php(22): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, false)
#2 C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\public\listar-cursos.php(4): Alura\Cursos\Infra\EntityManagerCreator->getEntityManager()
#3 {main} thrown in C:\Users\User\Desktop\projetos php\gerenciador-de-cursos\vendor\doctrine\orm\lib\Doctrine\ORM\Configuration.php on line 175 [Mon Dec 5 09:09:11 2022] [::1]:62687 Closing