You are here

public function MimeTypeGuesser::register in Zircon Profile 8.0

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

Registers a new mime type guesser.

When guessing, this guesser is preferred over previously registered ones.

Parameters

MimeTypeGuesserInterface $guesser:

1 call to MimeTypeGuesser::register()
MimeTypeGuesser::__construct in vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php
Registers all natively provided mime type guessers.

File

vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php, line 99

Class

MimeTypeGuesser
A singleton mime type guesser.

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public function register(MimeTypeGuesserInterface $guesser) {
  array_unshift($this->guessers, $guesser);
}