ServiceDefinition::setInject() compatibility