You are here

public function ExtensionGuesserInterface::guess in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/File/MimeType/ExtensionGuesserInterface.php \Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface::guess()

Makes a best guess for a file extension, given a mime type.

Parameters

string $mimeType The mime type:

Return value

string The guessed extension or NULL, if none could be guessed

2 methods override ExtensionGuesserInterface::guess()
ExtensionGuesser::guess in vendor/symfony/http-foundation/File/MimeType/ExtensionGuesser.php
Tries to guess the extension.
MimeTypeExtensionGuesser::guess in vendor/symfony/http-foundation/File/MimeType/MimeTypeExtensionGuesser.php
Makes a best guess for a file extension, given a mime type.

File

vendor/symfony/http-foundation/File/MimeType/ExtensionGuesserInterface.php, line 26

Class

ExtensionGuesserInterface
Guesses the file extension corresponding to a given mime type.

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public function guess($mimeType);