Symfony 5.2 will support attributes for routes, but it's not the case for Symfony 5.1. I just made a fresh install and used the maker, the generated route was the following:
#[Route('/main', name: 'main')]
public function index(): Response
{
}
This doesn't work. It seems critical but I didn't see any issue in that way so here it is.
- PHP version: 8.0
- Bundle version: 1.24.2