Class MimeTypeGuesser
A singleton mime type guesser.
By default, all mime type guessers provided by the framework are installed (if available on the current OS/PHP setup). You can register custom guessers by calling the register() method on the singleton instance.
$guesser = MimeTypeGuesser::getInstance(); $guesser->register(new MyCustomMimeTypeGuesser());
The last registered guesser is preferred over previously registered ones.
- Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser implements Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface
Namespace: Symfony\Component\HttpFoundation\File\MimeType
Author: Bernhard Schussek <bschussek@gmail.com>
Located at laravel/vendor/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
Author: Bernhard Schussek <bschussek@gmail.com>
Located at laravel/vendor/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
public static
|
|
private
|
|
public
|
#
register(
Registers a new mime type guesser |
public
string
|
private static
|
$instance | null |
#
The singleton instance |
protected
array
|
$guessers | array() |
#
All registered MimeTypeGuesserInterface instances |