Skip to content

馃悰 fix service argument - #108

Merged
garak merged 1 commit into
masterfrom
fix-service-args
Apr 17, 2026
Merged

garak merged 1 commit into
masterfrom
fix-service-args

Conversation

@garak

@garak garak commented Apr 16, 2026

Copy link
Copy Markdown
Member

Fix #107

Copilot AI review requested due to automatic review settings April 16, 2026 07:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes issue #107 by ensuring the bundle鈥檚 form type services are constructed with the required Doctrine registry dependency, preventing runtime instantiation errors when the services are registered.

Changes:

  • Inject doctrine into pugx_autocompleter.autocomplete service definition.
  • Inject doctrine into pugx_autocompleter.filter_autocomplete service definition.

馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/services.php
Comment on lines 19 to 21
->class('%pugx_autocompleter.autocomplete_class%')
->args([service('doctrine')])
->public()

Copilot AI Apr 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: instead of hard-coding the service id 'doctrine', consider referencing the dependency by type (Doctrine\Persistence\ManagerRegistry) so consumers with a custom registry service id can still use this configuration.

Copilot uses AI. Check for mistakes.
Comment thread config/services.php
Comment on lines 27 to 29
->class('%pugx_autocompleter.autocomplete_filter_class%')
->args([service('doctrine')])
->public()

Copilot AI Apr 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: same as above鈥攃onsider injecting Doctrine\Persistence\ManagerRegistry by type rather than using the 'doctrine' string service id.

Copilot uses AI. Check for mistakes.
@garak
garak merged commit 58afead into master Apr 17, 2026
14 checks passed
@garak
garak deleted the fix-service-args branch April 17, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Missing argument for services

2 participants