Factory/AssetFactory.php
public function getMimeType(\SplFileInfo $file)
    {
        $fileInfo = finfo_open(FILEINFO_MIME_TYPE);
        $mimeType = finfo_file($fileInfo, $file->getPathname());
        finfo_close($fileInfo);

        return $mimeType;
    }
public function getMimeType(\SplFileInfo $file)
    {
        $fileInfo = finfo_open(FILEINFO_MIME_TYPE);
        $mimeType = finfo_file($fileInfo, $file->getPathname());
        finfo_close($fileInfo);

        return $mimeType;
    }
public function getMimeType ( \ SplFileInfo $ file ) { $ fileInfo = finfo_open ( FILEINFO_MIME_TYPE ) ; $ mimeType = finfo_file ( $ fileInfo , $ file -> getPathname ( ) ) ; finfo_close ( $ fileInfo ) ; return $ mimeType ; }
Returns the mime-type of the given file

@param \SplFileInfo $file
@return string
Returns the mime - type of the given file