It's a class provided by amazonwebservices/aws-sdk-for-php located in utils\mimetype.class.php
The SDK is loaded by Gaufrette to do all the work. If there was a getMimeType on the File object from Gaufrette, this would be even cleaner.