Skip to content

Missing annotation routing config when not using flex #12218

Closed
@linaori

Description

@linaori

In (legacy) applications that have yet to migrate, or never will use flex, it's a bit cumbersome to get annotation routings to work. On https://symfony.com/doc/current/routing.html#creating-routes it's explained that you can do composer require annotations, but this only works when you have flex.

When searching for symfony annotation routing, you either get flex tutorials, the page I just linked, or the SensioFrameworkExtraBundle documentation for routing. This while basically the code example + explanation from the next link would be sufficient in combination with the required packages (doctrine annotations?): https://symfony.com/doc/current/best_practices/controllers.html#routing-configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions