Skip to content

Exclude PaginatedResult from service autodiscovery#29

Merged
maltehuebner merged 1 commit intomainfrom
fix/exclude-paginated-result-from-autowiring
Mar 14, 2026
Merged

Exclude PaginatedResult from service autodiscovery#29
maltehuebner merged 1 commit intomainfrom
fix/exclude-paginated-result-from-autowiring

Conversation

@maltehuebner
Copy link
Owner

Summary

  • Remove PaginatedResult from the resource scanning in config/services.yaml
  • PaginatedResult is a value object with required constructor arguments ($data, $page, $size, $totalItems) that cannot be autowired, causing container compilation to fail

Closes #28

Test plan

  • Verify Symfony container compiles without errors when the bundle is loaded
  • Verify PaginatedResult can still be instantiated manually in application code

🤖 Generated with Claude Code

PaginatedResult is a value object with required constructor arguments
that cannot be autowired, causing container compilation to fail.

Closes #28

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maltehuebner maltehuebner merged commit 3be287e into main Mar 14, 2026
4 checks passed
@maltehuebner maltehuebner deleted the fix/exclude-paginated-result-from-autowiring branch March 14, 2026 10:58
@maltehuebner maltehuebner self-assigned this Mar 14, 2026
@maltehuebner maltehuebner added bug Something isn't working AI-generated labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-generated bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PaginatedResult cannot be autowired as service

1 participant