Skip to content

Register UnusedIndexCleanupService for command container wiring#448

Closed
kingjia90 with Copilot wants to merge 2 commits into
2026.xfrom
copilot/fix-code-review-suggestion
Closed

Register UnusedIndexCleanupService for command container wiring#448
kingjia90 with Copilot wants to merge 2 commits into
2026.xfrom
copilot/fix-code-review-suggestion

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR addresses the review feedback on PR #391: CleanupUnusedIndicesCommand depends on UnusedIndexCleanupService, but that service was not registered in the bundle DI config. As a result, command instantiation could fail at container compile/runtime.

  • Problem scope

    • The command service auto-registration covers classes under src/Command/*, but UnusedIndexCleanupService still requires explicit registration in service config.
  • Change made

    • Added explicit Symfony service definition for Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\UnusedIndexCleanupService in config/services/search/index.yaml.
  • Resulting wiring

    Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\UnusedIndexCleanupService: ~

Copilot AI changed the title [WIP] Fix code as per review comment Register UnusedIndexCleanupService for command container wiring Jun 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI requested a review from kingjia90 June 29, 2026 10:50
@kingjia90 kingjia90 closed this Jun 29, 2026
@kingjia90 kingjia90 deleted the copilot/fix-code-review-suggestion branch June 29, 2026 12:58
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants