use Kunstmaan\MediaBundle\Helper\File\SVGExtensionGuesser;
6
use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
7
use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface;
8
9
@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...
10
11
/**
12
* @deprecated This class is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the symfony/mime component instead.
13
*/
14
class ExtensionGuesserFactory implements ExtensionGuesserFactoryInterface
The interface Kunstmaan\MediaBundle\He...GuesserFactoryInterface has been deprecated with message: This class is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the symfony/mime component 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.
Loading history...
15
{
16
/**
17
* Should return an extension guesser instance, used for file uploads
18
*
19
* NOTE: If you override this, you'll probably still have to register the SVGExtensionGuesser as last guesser...
The class Kunstmaan\MediaBundle\He...ile\SVGExtensionGuesser has been deprecated with message: This class is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the "symfony/mime" component 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: