Skip to content

make controller generates controller with attributes but symfony does not support it yet #750

@Nek-

Description

@Nek-

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions