[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/File/MimeType/ -> FileBinaryMimeTypeGuesser.php (summary)

(no description)

File Size: 99 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FileBinaryMimeTypeGuesser:: (3 methods):
  __construct()
  isSupported()
  guess()


Class: FileBinaryMimeTypeGuesser  - X-Ref

Guesses the mime type with the binary "file" (only available on *nix).

__construct($cmd = 'file -b --mime -- %s 2>/dev/null')   X-Ref
The $cmd pattern must contain a "%s" string that will be replaced
with the file name to guess.

The command output must start with the mime type of the file.

param: string $cmd The command to run to get the mime type of a file

isSupported()   X-Ref
Returns whether this guesser is supported on the current OS.

return: bool

guess($path)   X-Ref
{@inheritdoc}




Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1