- π¬π§United Kingdom catch
The discussion in #31-34 still stands, the entity handlers can't use dependency injection still.
However, there is no real reason for Cache::invalidateTags() to exist as a wrapper - the static method predates the \Drupal class iirc. We could deprecate that and use
\Drupal::service('cache_tags.invalidator')->invalidateTags($tags);
in those places, and use injection everywhere else.