[HttpFoundation] added some more phpdocs to clarify usage

This commit is contained in:
Fabien Potencier 2013-04-23 09:14:05 +02:00
parent ee784fb433
commit 29b5413134

View File

@ -18,8 +18,13 @@ use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
* A singleton mime type guesser.
*
* By default, all mime type guessers provided by the framework are installed
* (if available on the current OS/PHP setup). You can register custom
* guessers by calling the register() method on the singleton instance.
* (if available on the current OS/PHP setup).
*
* You can register custom guessers by calling the register() method on the
* singleton instance. Custom guessers are always called before any default ones.
*
* If you want to change the order of the default guessers, just re-register your
* preferred one as a custom one.
*
* <code>
* $guesser = MimeTypeGuesser::getInstance();