PublicPackageFile extends PackageResource implements PublicResourceInterface
FinalYes
Only to be used in TYPO3\CMS\Core\SystemResource namespace
Table of Contents
Interfaces
- PublicResourceInterface
- This interface is public API and can be referenced in third party code or throughout the TYPO3 core.
Properties
Methods
- __construct() : mixed
- __toString() : string
- fromPackageResource() : self
- getContents() : string
- getExtension() : string
- getHash() : string
- getMimeType() : string
- getName() : string
- getNameWithoutExtension() : string
- getPublicUri() : UriInterface
- getResourceIdentifier() : string
- isPublished() : bool
Properties
$identifier read-only
protected
PackageResourceIdentifier
$identifier
$package read-only
protected
PackageInterface
$package
$relativePath read-only
protected
string
$relativePath
Methods
__construct()
public
__construct(PackageInterface $package, string $relativePath, PackageResourceIdentifier $identifier) : mixed
Parameters
- $package : PackageInterface
- $relativePath : string
- $identifier : PackageResourceIdentifier
__toString()
public
__toString() : string
Return values
stringfromPackageResource()
public
static fromPackageResource(PackageResource $packageResource) : self
Parameters
- $packageResource : PackageResource
This API is only meant for very limited use cases, e.g. for building URIs for Vite dev server, where the dev server actually publishes (exposes) all (private) source files, so that they can be processed on the fly Do not use within TYPO3 core or other third party extensions
Return values
selfgetContents()
public
getContents() : string
Tags
Return values
stringgetExtension()
public
getExtension() : string
Return values
stringgetHash()
public
getHash() : string
Tags
Return values
stringgetMimeType()
public
getMimeType() : string
Tags
Return values
stringgetName()
public
getName() : string
Return values
stringgetNameWithoutExtension()
public
getNameWithoutExtension() : string
Return values
stringgetPublicUri()
public
getPublicUri(SystemResourceUriGeneratorInterface $uriGenerator) : UriInterface
Parameters
- $uriGenerator : SystemResourceUriGeneratorInterface
Return values
UriInterfacegetResourceIdentifier()
public
getResourceIdentifier() : string
Return values
stringisPublished()
public
isPublished() : bool