Apple is promoting the Service Locator pattern in App Intents, and as someone obsessed with pure dependency injection, I'm not really fond of this.
@simonbs DI is definitely an area where I feel Apple and their documentation / sample code are a bit out of touch with real world implementations. It's either overly complex, prone to errors or very hard to write automated tests for.