ResourcePublicationSlot implements SingletonInterface
A PSR-14 event listener for using FAL resources in public (frontend)
will be renamed at some point.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $fileIdentifiers : array<int, string>
Methods
- __construct() : mixed
- add() : void
- getPublicUrl() : void
- has() : bool
- getStreamUrl() : string
Properties
$fileIdentifiers
protected
array<int, string>
$fileIdentifiers
= []
Methods
__construct()
public
__construct(HashService $hashService) : mixed
Parameters
- $hashService : HashService
add()
public
add(FileInterface $resource) : void
Parameters
- $resource : FileInterface
getPublicUrl()
public
getPublicUrl(GeneratePublicUrlForResourceEvent $event) : void
Parameters
- $event : GeneratePublicUrlForResourceEvent
Attributes
- #[AsEventListener]
- 'form-framework/resource-getPublicUrl'
has()
public
has(FileInterface $resource) : bool
Parameters
- $resource : FileInterface
Return values
boolgetStreamUrl()
protected
getStreamUrl(ResourceInterface $resource) : string
Parameters
- $resource : ResourceInterface