This method is usually used together with annotations or autowiring, when a parameter
is not (or cannot be) type-hinted. Using this method instead of constructor() allows to
avoid defining all the parameters (letting them being resolved using annotations or autowiring)
and only define one.