I'm learning from scrach Symfony the version 5.0.1. I created a project with the --full option. The Annotations package is already installed.
Here is my error :
Class "1\HomeController" does not exist in C:\wamp64\www\crowdin\group-834932\crowdin\config/routes../../src/Controller/ (which is being imported from "C:\wamp64\www\crowdin\group-834932\crowdin\config/routes/annotations.yaml"). Make sure annotations are installed and enabled.
This is my HomeController (made by maker) :
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
/**
* @Route("/home", name="home")
*/
public function index(): Response
{
return new Response('<h1>Home Page</h1>');
}
}
and the annotations.yaml file :
controllers:
resource: ../../src/Controller/
type: annotation
kernel:
resource: ../../src/Kernel.php
type: annotation
Why does it not work ? I installed all the packages needed. I well followed the configuration process. Can you help me please ?