public static function ExtensionGuesser::getInstance in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/File/MimeType/ExtensionGuesser.php \Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser::getInstance()
Returns the singleton instance.
Return value
2 calls to ExtensionGuesser::getInstance()
- File::guessExtension in vendor/
symfony/ http-foundation/ File/ File.php - Returns the extension based on the mime type.
- UploadedFile::guessClientExtension in vendor/
symfony/ http-foundation/ File/ UploadedFile.php - Returns the extension based on the client mime type.
File
- vendor/
symfony/ http-foundation/ File/ MimeType/ ExtensionGuesser.php, line 47
Class
- ExtensionGuesser
- A singleton mime type to file extension guesser.
Namespace
Symfony\Component\HttpFoundation\File\MimeTypeCode
public static function getInstance() {
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}