use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface;
6
7
@trigger_error(sprintf('The "%s" class is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the "symfony/mime" component instead.', __CLASS__), E_USER_DEPRECATED);
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
8
9
/**
10
* @deprecated This class is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the "symfony/mime" component instead.
11
*/
12
class SVGExtensionGuesser implements ExtensionGuesserInterface
The interface Symfony\Component\HttpFo...tensionGuesserInterface has been deprecated with message: since Symfony 4.3, use {@link MimeTypesInterface} instead
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
If you suppress an error, we recommend checking for the error condition explicitly: