require

abstract fun <T : Any> require(type: Class<T>): T

Returns a service instance or throws if missing.