Class ExtensionGuesser
A singleton mime type to file extension guesser.
A default guesser is provided. You can register custom guessers by calling the register() method on the singleton instance.
$guesser = ExtensionGuesser::getInstance(); $guesser->register(new MyCustomExtensionGuesser());
The last registered guesser is preferred over previously registered ones.
- Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser implements Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface
Namespace: Symfony\Component\HttpFoundation\File\MimeType
Located at laravel/vendor/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php
Located at laravel/vendor/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesser.php
public static
|
|
private
|
|
public
|
#
register(
Registers a new extension guesser |
public
string
|
private static
|
$instance | null |
#
The singleton instance |
protected
array
|
$guessers | array() |
#
All registered ExtensionGuesserInterface instances |