TextExtractorRegistry

class \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry

Implements
SingletonInterface

Class TextExtractorRegistry

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$instances  : TextExtractorInterface[]
Instance cache for text extractor classes
$textExtractorClasses  : array
Registered text extractor class names

Methods

getInstance()  : TextExtractorRegistry
Returns an instance of this class
getTextExtractor()  : TextExtractorInterface|null
Checks whether any registered text extractor can deal with a given file and returns it.
getTextExtractorInstances()  : TextExtractorInterface[]
Get all registered text extractor instances
registerTextExtractor()  : mixed
Allows to register a text extractor class
createTextExtractorInstance()  : TextExtractorInterface
Create an instance of a certain text extractor class

Properties

$textExtractorClasses

Registered text extractor class names

protected array $textExtractorClasses = []

Methods

getInstance()

Returns an instance of this class

public static getInstance() : TextExtractorRegistry

Deprecated

will be removed in TYPO3 v12.0. Use Dependency Injection or GeneralUtility::makeInstance() if DI is not possible.

Return values

TextExtractorRegistry

registerTextExtractor()

Allows to register a text extractor class

public registerTextExtractor(string $className) : mixed

Parameters

$className : string

Tags

throws
InvalidArgumentException
On this page