These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\MediaBundle\Helper; |
||
4 | |||
5 | use Kunstmaan\MediaBundle\Helper\File\SVGExtensionGuesser; |
||
6 | use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser; |
||
7 | use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface; |
||
8 | |||
9 | /** |
||
10 | * @deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. Use the symfony/mime component instead. |
||
11 | */ |
||
12 | class ExtensionGuesserFactory implements ExtensionGuesserFactoryInterface |
||
0 ignored issues
–
show
|
|||
13 | { |
||
14 | /** |
||
15 | * Should return an extension guesser instance, used for file uploads |
||
16 | * |
||
17 | * NOTE: If you override this, you'll probably still have to register the SVGExtensionGuesser as last guesser... |
||
18 | * |
||
19 | * @return ExtensionGuesserInterface |
||
20 | */ |
||
21 | public function get() |
||
22 | { |
||
23 | $guesser = ExtensionGuesser::getInstance(); |
||
24 | $guesser->register(new SVGExtensionGuesser()); |
||
0 ignored issues
–
show
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.
Loading history...
|
|||
25 | |||
26 | return $guesser; |
||
27 | } |
||
28 | } |
||
29 |
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.