The
resolve
function resolves a given class or interface name to an instance using the service container: