/**
* Appends a MIME type guesser to the guessers chain.
*
* @param \Symfony\Component\Mime\MimeTypeGuesserInterface $guesser
* The guesser to be appended.
* @param int $priority
* The priority of the guesser being added.
*
* @return $this
*/
public function addMimeTypeGuesser(MimeTypeGuesserInterface
$guesser,
$priority = 0
) { if ($guesser->
isGuesserSupported()) { $this->guessers
[$priority][] =
$guesser;
// Mark sorted guessers for rebuild.
$this->sortedGuessers = NULL;
} return $this;
} /**
* {@inheritdoc}
*/
public function isGuesserSupported(): bool
{