docs: document routePriority and CSP nonce (5.0) - #2331
Merged
soyuka merged 1 commit intoSep 13, 2026
Conversation
soyuka
force-pushed
the
docs/5.0-route-priority-csp-nonce
branch
from
September 13, 2026 07:40
a0d8988 to
9e702ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
routePriority(core#8309, corrected by core#8529) incore/operations.md: an operation-level option that controls Symfony route matching order, with a worked example of a static/books/featuredroute colliding with/books/{id}. Explicitly disambiguated from the pre-existingpriorityoption, which sorts in the opposite direction and serves a different purpose (operation-list ordering, e.g. IRI generation) — the two were split in #8529 specifically because #8309 initially reusedpriorityfor routing.core/openapi.md) and GraphiQL (core/graphql.md) added in core#8310, cross-linking the two sections instead of duplicating the explanation. Precedence confirmed againsttests/Functional/SwaggerUiCspNonceTest.phpandtests/Functional/GraphQl/GraphiqlCspNonceTest.php: the_csp_noncerequest attribute wins over a Twigcsp_nonce()function (e.g. NelmioSecurityBundle), and if neither is present nononceattribute is emitted. Both features are Symfony-only onmain(verified:src/Symfony/Bundle/SwaggerUi/SwaggerUiProcessor.phpand the Symfony-registeredGraphiQlAction; Laravel's Swagger/GraphiQL views are untouched by core#8310).Both features are 5.0-only (
main); verified absent fromupstream/4.4.Test plan
npx prettier@3.9.5 --checkon the three touched files passes (whole-repo check shows only pre-existing, unrelated failures incore/doctrine-filters.md/core/filters.md, files not touched by this PR)api-platform/coreupstream/mainsource (src/Metadata/Operation.php,src/Symfony/Routing/ApiLoader.php,vendor/symfony/routing/RouteCollection.php,src/GraphQl/Action/GraphiQlAction.php,src/Symfony/Bundle/SwaggerUi/SwaggerUiProcessor.php)