Skip to content

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()) }
        }
Clone this wiki locally