FilePersistenceSlot implements SingletonInterface

FinalYes

A PSR-14 event listener for various FAL related functionality.

Internal

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

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
see
getContentSignature
Return values
bool

getContentSignature()

public getContentSignature(string $content) : string
Parameters
$content : string
Return values
string

        
On this page

Search results