Переглянути джерело

merged branch Burgov/hint_about_mime_type_guesser_2_0 (PR #2843)

Commits
-------

45bba7b Added a hint about a possible cause for why no mime type guesser is be available

Discussion
----------

Added a hint about a possible cause for why no mime type guesser is be available

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fabien Potencier 13 роки тому
батько
коміт
93de0e07c3

+ 1 - 1
src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php

@@ -111,7 +111,7 @@ class MimeTypeGuesser implements MimeTypeGuesserInterface
         }
 
         if (!$this->guessers) {
-            throw new \LogicException('Unable to guess the mime type as no guessers are available.');
+            throw new \LogicException('Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)');
         }
 
         foreach ($this->guessers as $guesser) {