1 | <?php |
||
6 | class MimeTypeGuesser |
||
7 | { |
||
8 | /** |
||
9 | * @var SymfonyMimeTypeGuesserInterface |
||
10 | */ |
||
11 | protected $mimeTypeGuesser; |
||
12 | |||
13 | /** |
||
14 | * @param SymfonyMimeTypeGuesserInterface $mimeTypeGuesser |
||
15 | */ |
||
16 | 1 | public function __construct(SymfonyMimeTypeGuesserInterface $mimeTypeGuesser) |
|
20 | |||
21 | /** |
||
22 | * Gets mime type of binary |
||
23 | * |
||
24 | * @param string $binary |
||
25 | * @return string |
||
26 | * @throws \Exception |
||
27 | */ |
||
28 | public function guess($binary) |
||
46 | } |
||
47 |