RendererRegistry implements SingletonInterface

Registry for file renderers, which are registered as tagged services via the #[AsFileRenderer] attribute or the 'fal.file_renderer' service tag. Renderers are ordered by their tag priority, a renderer with a higher priority is asked first whether it can render a file.

Internal

not part of TYPO3's Core API. Register file renderers via the #[AsFileRenderer] attribute instead.

Table of Contents

Interfaces

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

Properties

$instances  : array<string|int, FileRendererInterface>|null
Instance cache for renderer classes
$renderers  : iterable<string|int, mixed>

Methods

__construct()  : mixed
getRenderer()  : FileRendererInterface|null
Get matching renderer with highest priority
registerRendererClass()  : void
getRendererInstances()  : array<string|int, FileRendererInterface>
Get all registered renderer instances

Properties

$renderers read-only

protected iterable<string|int, mixed> $renderers = []

Methods

registerRendererClass()

public registerRendererClass(string $className) : void
Deprecated

since TYPO3 v15.0, this method is a no-op and will be removed in TYPO3 v16.0. Register the renderer as a tagged service using the #[AsFileRenderer] attribute instead.

Parameters
$className : string
On this page

Search results