Zend\Validator\File\MimeType::setMagicFile
Sets the magicfile to use if null, the MAGIC constant from php is used if the MAGIC file is erroneous, no file will be set if false, the default MAGIC file from PHP will be used
Signature
public function setMagicFile(string
$file )
Parameters
$file
— string
Returns
- MimeType
- Provides fluid interface
Errors/Exceptions
-
RuntimeException
- When finfo can not read the magicfile
-
InvalidArgumentException
-
InvalidMagicMimeFileException