You are here

public static function MimeTypeGuesser::reset in Zircon Profile 8.0

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

Resets the singleton instance.

2 calls to MimeTypeGuesser::reset()
FileTest::testGuessExtensionWithReset in vendor/symfony/http-foundation/Tests/File/FileTest.php
@requires extension fileinfo
MimeTypeGuesser::registerWithSymfonyGuesser in core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php
A helper function to register with Symfony's singleton mime type guesser.

File

vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php, line 73

Class

MimeTypeGuesser
A singleton mime type guesser.

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public static function reset() {
  self::$instance = null;
}