https://github.com/silverstripe/sspak/blob/master/src/sspak-sniffer.php relies on Core.php and global $databaseConfig. For SilverStripe 4 this will need to change. Ideally, the pre-app-object support for SS4 will still work.