Refiz o codigo com esse: composer create-project symfony/skeleton consultorio-alura "^4.2"
Mais mesmo assim nao executa o:
composer require annotations
Ate coloquei assim:
composer require doctrine/annotations
Mais a rota nao acha.
Sorry, the page you are looking for could not be found.
(2/2) NotFoundHttpException
No route found for "GET /ola"
(1/2) ResourceNotFoundException
Composer version 1.8.4 2019-02-11 10:52:10
PHP 7.3.3 (cli) (built: Mar 6 2019 21:53:02) ( NTS MSVC15 (Visual C++ 2017) x64 )
Composer dentro da pasta do projeto
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/annotations": "^1.6",
"symfony/console": "4.2.*",
"symfony/dotenv": "4.2.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "4.2.*",
"symfony/yaml": "4.2.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.2.*"
}
}
}