4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpFoundation\File\MimeType;
14 use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
15 use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
18 * Guesses the mime type of a file.
20 * @author Bernhard Schussek <bschussek@gmail.com>
22 interface MimeTypeGuesserInterface
25 * Guesses the mime type of the file with the given path.
27 * @param string $path The path to the file
29 * @return string The mime type or NULL, if none could be guessed
31 * @throws FileNotFoundException If the file does not exist
32 * @throws AccessDeniedException If the file could not be read
34 public function guess($path);