Issue #2171655 by dawehner: Drupal should not typehint the EventDispatcher directly.