public static function MimeTypeGuesser::getInstance

Returns the singleton instance

Return value

MimeTypeGuesser

2 calls to MimeTypeGuesser::getInstance()
File::getMimeType in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php
Returns the mime type of the file.
MimeTypeTest::testGuessImageWithFileBinaryMimeTypeGuesser in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php, line 55

Class

MimeTypeGuesser
A singleton mime type guesser.

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public static function getInstance() {
  if (null === self::$instance) {
    self::$instance = new self();
  }
  return self::$instance;
}