You are here

public function FileinfoMimeTypeGuesser::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/File/MimeType/FileinfoMimeTypeGuesser.php \Symfony\Component\HttpFoundation\File\MimeType\FileinfoMimeTypeGuesser::__construct()

Constructor.

@link http://www.php.net/manual/en/function.finfo-open.php

Parameters

string $magicFile A magic file to use with the finfo instance:

File

vendor/symfony/http-foundation/File/MimeType/FileinfoMimeTypeGuesser.php, line 33

Class

FileinfoMimeTypeGuesser
Guesses the mime type using the PECL extension FileInfo.

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public function __construct($magicFile = null) {
  $this->magicFile = $magicFile;
}