Skip to content

Symfony API loader do not consider route priority #8135

Description

@gomcodoctor

API Platform version(s) affected: 4.0

Description

ApiLoader Routing service does not consider route priority set in operation configuration

Possible Solution
Replace

$routeCollection->add($operationName, $route);

to

$routeCollection->add($operationName, $route, $operation->getPriority() ?? 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    StateState providers/processorsSymfonySymfony bridge: routing/DI/eventlistener

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions