Skip to content

Conversation

@bobvandevijver
Copy link
Member

Extension controller should use the ExtensionController base class, which uses the ServicesTrait. However, those services were not populated correctly. This PR fixes that.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes service registration in extension controllers by properly populating services through the ServicesTrait base class. The changes refactor the ExtensionSubscriber to inject dependencies directly into ExtensionController instances and clean up the service initialization flow.

Key changes:

  • Refactored constructor to use promoted readonly properties instead of storing services in an array
  • Added logic to inject services directly into ExtensionController instances during the controller event
  • Fixed method names to match their actual event handlers (renamed onKernelResponse to onKernelController and onConsoleResponse to onConsoleCommand)

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

@bobvandevijver bobvandevijver force-pushed the register-controller-services branch from 4dbae3d to e2ad8f0 Compare December 30, 2025 10:51
@tobias-93

This comment was marked as outdated.

@bobvandevijver bobvandevijver force-pushed the register-controller-services branch 3 times, most recently from 8f28765 to abb9491 Compare December 30, 2025 11:33
@bobvandevijver bobvandevijver force-pushed the register-controller-services branch from abb9491 to 7858c6e Compare December 30, 2025 11:42
@bobvandevijver bobvandevijver enabled auto-merge (rebase) December 30, 2025 12:25
@bobvandevijver bobvandevijver merged commit a283e54 into 6.0 Dec 30, 2025
35 of 37 checks passed
@bobvandevijver bobvandevijver deleted the register-controller-services branch December 30, 2025 12:26
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.

3 participants