You are here

public function ExtractFileValidator::__construct in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x src/ExtractFileValidator.php \Drupal\search_api_attachments\ExtractFileValidator::__construct()

Constructs a new ExtractFileValidator class.

Parameters

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimeTypeGuesser: Mime type guesser service.

File

src/ExtractFileValidator.php, line 30

Class

ExtractFileValidator
Validator class for attachment indexing.

Namespace

Drupal\search_api_attachments

Code

public function __construct(MimeTypeGuesserInterface $mimeTypeGuesser) {
  $this->mimeTypeGuesser = $mimeTypeGuesser;
}