DefaultSystemResourceUriGenerator

readonly class \TYPO3\CMS\Core\SystemResource\Publishing\DefaultSystemResourceUriGenerator

Implements
SystemResourceUriGeneratorInterface

This is tightly coupled to DefaultSystemResourcePublisher and acts as a helper to actually generate the URI for a public resource.

This helper and its interface only exists to not expose the absolute path from the system resource objects directly.

Table of Contents

Interfaces

SystemResourceUriGeneratorInterface
This is an implementation detail to allow not exposing the absolute file path to extension resources directly, but only to the resource publisher when generating URLs to the _assets directory.

Methods

__construct()  : mixed
generateForFile()  : UriInterface
generateForPackageResource()  : UriInterface

Methods

__construct()

public __construct(string $publishingDirectory, string $prefix, ServerRequestInterface|null $request, UriGenerationOptions $options) : mixed

Parameters

$publishingDirectory : string
$prefix : string
$request : ServerRequestInterface|null
$options : UriGenerationOptions

generateForFile()

public generateForFile(File $file) : UriInterface

Parameters

$file : File

Return values

UriInterface
On this page