Skip to content

IBX-12046: Removed Symfony 8 deprecated code usage - #56

Open
ViniTou wants to merge 2 commits into
6.0from
ibx-12046-symfony-deprecations
Open

IBX-12046: Removed Symfony 8 deprecated code usage#56
ViniTou wants to merge 2 commits into
6.0from
ibx-12046-symfony-deprecations

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12046

Related PRs:

Description:

Removes the only Symfony 8-incompatible usage found in this repository: Request::get() in QueryResultsInjector::buildResults(), used to read the pagination page number for a query field. Replaced with explicit attributes/query/request bag lookups via a match expression, mirroring the pattern used in ibexa/core's IBX-12046 fix (QueryController/QueryRenderController). No BC break: the method is internal to a final readonly class and the resolution order (route attribute, then query string, then request body) is preserved. No constraints, voters, OptionsResolver nested closures, or other Symfony 8 deprecation patterns from the checklist were found in this repository.

For QA:

Exercise a content view rendering a query field with pagination enabled (EnablePagination field setting), and confirm the page parameter (<field>_page) is still honored when passed as a query string parameter or route attribute.

Documentation:

N/A — no public API changes.

Replaces the deprecated Request::get() call in QueryResultsInjector
with explicit attributes/query/request bag lookups for the pagination
page parameter, mirroring the pattern used in ibexa/core's
IBX-12046 fix.
The per-field page parameter is a query-string parameter of the main request; attributes and the POST body
were only consulted because Request::get() did so generically.
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants