src/Service/Response/StaticFiles/MimeTypeGuesser.php
public function guess($path)
    {
        $ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));

        if (isset($this->extensions[$ext])) {
            return $this->extensions[$ext];
        }

        return $this->parent->guess($path);
    }
public function guess($path)
    {
        $ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));

        if (isset($this->extensions[$ext])) {
            return $this->extensions[$ext];
        }

        return $this->parent->guess($path);
    }
public function guess ( $ path ) { $ ext = strtolower ( pathinfo ( $ path , PATHINFO_EXTENSION ) ) ; if ( isset ( $ this -> extensions [ $ ext ] ) ) { return $ this -> extensions [ $ ext ] ; } return $ this -> parent -> guess ( $ path ) ; }
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
Guesses the mime type of the file with the given path .