47 return GeneralUtility::makeInstance(__CLASS__);
58 if (!class_exists($className)) {
59 throw new \InvalidArgumentException(
'The class "' . $className .
'" you are trying to register is not available', 1422906893);
62 if (!in_array(TextExtractorInterface::class, class_implements($className),
true)) {
63 throw new \InvalidArgumentException($className .
' must implement interface' . TextExtractorInterface::class, 1422771427);
66 $this->textExtractorClasses[] = $className;
76 if (empty($this->instances) && !empty($this->textExtractorClasses)) {
77 foreach ($this->textExtractorClasses as $className) {
79 $this->instances[] = $object;
94 return GeneralUtility::makeInstance($className);
107 if ($textExtractor->canExtractText($file)) {
108 return $textExtractor;