Baixei novamente o projeto inicial
Na verdade formatei o computador kk..
Reinstalei o composer e os pacotes, descomentei o pdo_sqlite no php.ini
Aparentemente o erro mudou, acho que você tinha razão sobre o erro de instalação dos pacotes.
Mas agora está com erro em várias classes, não sei se é configuração do autoload, ou o que está acontecendo, segue o erro ao tentar acessar listar-cursos.php
PHP Fatal error: Uncaught Doctrine\Persistence\Mapping\MappingException: Class 'Alura\Cursos\Entity\Curso' does not exist in C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\MappingException.php:80Stack trace:
#0 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\RuntimeReflectionService.php(39): Doctrine\Persistence\Mapping\MappingException::nonExistingClass()
#1 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(283): Doctrine\Persistence\Mapping\RuntimeReflectionService->getParentClasses()
#2 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(318): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses()
#3 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
#4 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(318): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
#5 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\Repository\DefaultRepositoryFactory.php(32): Doctrine\ORM\EntityManager->getClassMetadata()
#6 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(825): Doctrine\ORM\Repository\DefaultRepositoryFactory->getRepository()
#7 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\public\listar-cursos.php(6): Doctrine\ORM\EntityManager->getRepository()
#8 {main}
thrown in C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\MappingException.php on line 80
[Mon Dec 26 18:50:34 2022] [::1]:49977 [500]: GET /listar-cursos.php - Uncaught Doctrine\Persistence\Mapping\MappingException: Class 'Alura\Cursos\Entity\Curso' does not exist in C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\MappingException.php:80
Stack trace:
#0 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\RuntimeReflectionService.php(39): Doctrine\Persistence\Mapping\MappingException::nonExistingClass()
#1 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(283): Doctrine\Persistence\Mapping\RuntimeReflectionService->getParentClasses()
#2 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(318): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses()
#3 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
#4 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(318): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
#5 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\Repository\DefaultRepositoryFactory.php(32): Doctrine\ORM\EntityManager->getClassMetadata()
#6 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(825): Doctrine\ORM\Repository\DefaultRepositoryFactory->getRepository()
#7 C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\public\listar-cursos.php(6): Doctrine\ORM\EntityManager->getRepository()
#8 {main}
thrown in C:\Users\elton\OneDrive\Área de Trabalho\Nova pasta\vendor\doctrine\persistence\src\Persistence\Mapping\MappingException.php on line 80
Segue um print das pastas e do JSON