Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[DI] Add ability to choose behavior of decorations on non existent decorated services #33854
Handling decorations on non existent decorated services
Handle decorations on non existent decorated services by either throwing the service not found exception, silently ignoring services (decorator & decorated) all together or leave the decorated service to null (current behavior)
Something almost similar to how missing services as parameters are handles.
decorator: decorates: decorated decoration_on_invalid: ignore
<service id="decorator" decorates="decorated" decoration-on-invalid="ignore" />