FilePersistenceSlot implements SingletonInterface
FinalYes
A PSR-14 event listener for various FAL related functionality.
will be renamed at some point.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Constants
- COMMAND_FILE_ADD = 'fileAdd'
- COMMAND_FILE_CREATE = 'fileCreate'
- COMMAND_FILE_MOVE = 'fileMove'
- COMMAND_FILE_RENAME = 'fileRename'
- COMMAND_FILE_REPLACE = 'fileReplace'
- COMMAND_FILE_SET_CONTENTS = 'fileSetContents'
Properties
- $allowedInvocations : array<string|int, mixed>
Methods
- __construct() : mixed
- allowInvocation() : bool
- Allows invocation for a particular combination of command and file identifier. Commands providing new content have to submit a HMAC signature on the content as well.
- getContentSignature() : string
- onPreFileAdd() : void
- onPreFileCreate() : void
- onPreFileMove() : void
- onPreFileRename() : void
- onPreFileReplace() : void
- onPreFileSetContents() : void
Constants
COMMAND_FILE_ADD
public
mixed
COMMAND_FILE_ADD
= 'fileAdd'
COMMAND_FILE_CREATE
public
mixed
COMMAND_FILE_CREATE
= 'fileCreate'
COMMAND_FILE_MOVE
public
mixed
COMMAND_FILE_MOVE
= 'fileMove'
COMMAND_FILE_RENAME
public
mixed
COMMAND_FILE_RENAME
= 'fileRename'
COMMAND_FILE_REPLACE
public
mixed
COMMAND_FILE_REPLACE
= 'fileReplace'
COMMAND_FILE_SET_CONTENTS
public
mixed
COMMAND_FILE_SET_CONTENTS
= 'fileSetContents'
Properties
$allowedInvocations
protected
array<string|int, mixed>
$allowedInvocations
= []
Methods
__construct()
public
__construct(HashService $hashService) : mixed
Parameters
- $hashService : HashService
allowInvocation()
Allows invocation for a particular combination of command and file identifier. Commands providing new content have to submit a HMAC signature on the content as well.
public
allowInvocation(string $command, string $combinedFileIdentifier[, string|null $contentSignature = null ]) : bool
Parameters
- $command : string
- $combinedFileIdentifier : string
- $contentSignature : string|null = null
Tags
Return values
boolgetContentSignature()
public
getContentSignature(string $content) : string
Parameters
- $content : string
Return values
stringonPreFileAdd()
public
onPreFileAdd(BeforeFileAddedEvent $event) : void
Parameters
- $event : BeforeFileAddedEvent
Attributes
- #[AsEventListener]
- 'form-framework/add'
onPreFileCreate()
public
onPreFileCreate(BeforeFileCreatedEvent $event) : void
Parameters
- $event : BeforeFileCreatedEvent
Attributes
- #[AsEventListener]
- 'form-framework/creation'
onPreFileMove()
public
onPreFileMove(BeforeFileMovedEvent $event) : void
Parameters
- $event : BeforeFileMovedEvent
Attributes
- #[AsEventListener]
- 'form-framework/move'
onPreFileRename()
public
onPreFileRename(BeforeFileRenamedEvent $event) : void
Parameters
- $event : BeforeFileRenamedEvent
Attributes
- #[AsEventListener]
- 'form-framework/rename'
onPreFileReplace()
public
onPreFileReplace(BeforeFileReplacedEvent $event) : void
Parameters
- $event : BeforeFileReplacedEvent
Attributes
- #[AsEventListener]
- 'form-framework/replace'
onPreFileSetContents()
public
onPreFileSetContents(BeforeFileContentsSetEvent $event) : void
Parameters
- $event : BeforeFileContentsSetEvent
Attributes
- #[AsEventListener]
- 'form-framework/update-content'