interface MimeTypeGuesserInterface

Guesses the mime type of a file

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of MimeTypeGuesserInterface

All classes that implement MimeTypeGuesserInterface

File

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

Namespace

Symfony\Component\HttpFoundation\File\MimeType
View source
interface MimeTypeGuesserInterface {

  /**
   * Guesses the mime type of the file with the given path.
   *
   * @param string $path The path to the file
   *
   * @return string         The mime type or NULL, if none could be guessed
   *
   * @throws FileNotFoundException  If the file does not exist
   * @throws AccessDeniedException  If the file could not be read
   */
  public function guess($path);

}

Members

Namesort descending Modifiers Type Description Overrides
MimeTypeGuesserInterface::guess public function Guesses the mime type of the file with the given path. 3