[HttpFoundation] added a way to inject a custom magic file into FileinfoMimeTypeGuesser (closes #6963)