2
respostas

Não está aparecendo a paste Vendor.

  •  install --no-interaction --no-ansi
  •  Installing dependencies from lock file (including require-dev)
  •  Verifying lock file contents can be installed on current platform.
  •  Your lock file does not contain a compatible set of packages. Please run composer update.
  •   Problem 1
  •   doctrine/annotations is locked to version v1.6.1 and an update of this package was not requested.
  •   doctrine/annotations v1.6.1 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 2
  •   doctrine/cache is locked to version v1.8.0 and an update of this package was not requested.
  •   doctrine/cache v1.8.0 requires php ~7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 3
  •   doctrine/collections is locked to version v1.6.1 and an update of this package was not requested.
  •   doctrine/collections v1.6.1 requires php ^7.1.3 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 4
  •   doctrine/common is locked to version v2.10.0 and an update of this package was not requested.
  •   doctrine/common v2.10.0 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 5
  •   doctrine/dbal is locked to version v2.9.2 and an update of this package was not requested.
  •   doctrine/dbal v2.9.2 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 6
  •   doctrine/event-manager is locked to version v1.0.0 and an update of this package was not requested.
  •   doctrine/event-manager v1.0.0 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 7
  •   doctrine/inflector is locked to version v1.3.0 and an update of this package was not requested.
  •   doctrine/inflector v1.3.0 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 8
  •   doctrine/instantiator is locked to version 1.2.0 and an update of this package was not requested.
  •   doctrine/instantiator 1.2.0 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 9
  •   doctrine/orm is locked to version v2.6.3 and an update of this package was not requested.
  •   doctrine/orm v2.6.3 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 10
  •   doctrine/persistence is locked to version 1.1.1 and an update of this package was not requested.
  •   doctrine/persistence 1.1.1 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 11
  •   doctrine/reflection is locked to version v1.0.0 and an update of this package was not requested.
  •   doctrine/reflection v1.0.0 requires php ^7.1 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 12
  •   symfony/console is locked to version v4.2.8 and an update of this package was not requested.
  •   symfony/console v4.2.8 requires php ^7.1.3 -> your php version (8.0.11) does not satisfy that requirement.
  •   Problem 13
  •   symfony/contracts is locked to version v1.0.2 and an update of this package was not requested.
  •   symfony/contracts v1.0.2 requires php ^7.1.3 -> your php version (8.0.11) does not satisfy that requirement.
  •  Failed to install packages for ./composer.json.
2 respostas

Acho que consegui resolver o de cima. Mas agora está aparecendo assim..

Fatal error: Uncaught Error: Class "Alura\Cursos\Infra\EntityManagerCreator" not found in C:\Users\diogo\Desktop\ProjetoSite\public\listar-cursos.php:8 Stack trace: #0 {main} thrown in C:\Users\diogo\Desktop\ProjetoSite\public\listar-cursos.php on line 8

Boa noite Diogo,

na sua classe listar-cursos.php tem o use Alura\Cursos\Infra\EntityManagerCreator ?