DefaultSystemResourceUriGenerator implements SystemResourceUriGeneratorInterface
Read onlyYes
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.
Only to be used in TYPO3\CMS\Core\SystemResource namespace
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
- generateForPublicResourceBasedOnAbsolutePath() : 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
UriInterfacegenerateForPublicResourceBasedOnAbsolutePath()
public
generateForPublicResourceBasedOnAbsolutePath(PublicResourceInterface $resource, string $absoluteResourcePath) : UriInterface
Parameters
- $resource : PublicResourceInterface
- $absoluteResourcePath : string