-
-
Notifications
You must be signed in to change notification settings - Fork 0
Constructor injection
Osama Raddad edited this page Jun 21, 2022
·
1 revision
to inject in the constructor you need to use the param() function
and if you are trying to inject a named dependency you can pass the name to the param function param("name")
factory{
constructor { Name(param("first"), param()) }
}