Issue #2249899 by damiankloip: Refactor Drupal\Core\Cron.
Issue #2167071 by likin: Remove onHTML event from ViewSubscriber - deprecated.