1
resposta

RuntimeException

O meu deu esse erro não sei como proceder.

Fatal error: Uncaught RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in C:\Users\johnn\Documents\GitHub\projeto-inicial\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php:234 Stack trace: #0 C:\Users\johnn\Documents\GitHub\projeto-inicial\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php(210): Doctrine\ORM\Tools\Setup::createCacheInstance(false, NULL) #1 C:\Users\johnn\Documents\GitHub\projeto-inicial\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php(194): Doctrine\ORM\Tools\Setup::createCacheConfiguration(false, 'C:\Users\johnn\...', NULL) #2 C:\Users\johnn\Documents\GitHub\projeto-inicial\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php(91): Doctrine\ORM\Tools\Setup::createConfiguration(false, 'C:\Users\johnn\...', NULL) #3 C:\Users\johnn\Documents\GitHub\projeto-inicial\src\Infra\EntityManagerCreator.php(22): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, false) #4 C:\Users\johnn\Documents\GitHub\projeto-inicial\public\listar-cursos.php(4): Alura\Cursos\Infra\EntityManagerCreator->getEntityManager() #5 {main} thrown in C:\Users\johnn\Documents\GitHub\projeto-inicial\vendor\doctrine\orm\lib\Doctrine\ORM\Tools\Setup.php on line 234

1 resposta

João, beleza? O erro esta indicando que esta faltando uma dependencia. Tente instalar pelo composer:

composer require symfony/cache