Skip to content

RegisterFactory passes parent container in delegate/factory #277

@dcomartin

Description

@dcomartin

Repro:
https://gist.github.com/dcomartin/a631b002ce761ac5d64d77ab38c705e8

This is also the case with using the RegisterType with the obsolete InjectionFactory. However, this is a change of behavior because InjectionFactory used to give you the container/child that was doing the resolution of the outer type. I've confirmed that was the behavior back in at least version 5.8.13.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions