Skip to content

Adds Use overload for registering implementation type#426

Merged
Keboo merged 1 commit intomasterfrom
useOverload
Jan 29, 2026
Merged

Adds Use overload for registering implementation type#426
Keboo merged 1 commit intomasterfrom
useOverload

Conversation

@Keboo
Copy link
Collaborator

@Keboo Keboo commented Jan 29, 2026

Introduces a new Use overload to simplify registering a concrete type as the implementation for a service interface.

This allows for more concise dependency registration, enabling mocker.Use() instead of manual factory creation. The implementation type is resolved via Get, ensuring its dependencies are also correctly handled.

Introduces a new `Use` overload to simplify registering a concrete type as the implementation for a service interface.

This allows for more concise dependency registration, enabling `mocker.Use()` instead of manual factory creation. The implementation type is resolved via `Get`, ensuring its dependencies are also correctly handled.
@Keboo Keboo enabled auto-merge (squash) January 29, 2026 22:30
@Keboo Keboo merged commit 7c65c09 into master Jan 29, 2026
3 checks passed
@Keboo Keboo deleted the useOverload branch January 29, 2026 22:31
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.

1 participant