class FlushInvalidatedResource implements SelfCheckingResourceInterface, Serializable, Flushable (View source)

Some arbitrary resource which expires when flush is invoked.

Uses a canary file to mark future freshness requests as stale.

Methods

public
__toString()

No description

public
getResource()

No description

public
isFresh($timestamp)

No description

public
array
__serialize()

No description

public
void
__unserialize(array $data)

No description

public
string
serialize() deprecated

The __serialize() magic method will be automatically used instead of this

public
unserialize(string $serialized) deprecated

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

public static 
flush()

This function is triggered early in the request if the "flush" query parameter has been set. Each class that implements Flushable implements this function which looks after it's own specific flushing functionality.

protected static 
string
canary()

Path to i18n canary

protected static 
touch()

Touch the canary

Details

__toString()

No description

getResource()

No description

isFresh($timestamp)

No description

Parameters

$timestamp

array __serialize()

No description

Return Value

array

void __unserialize(array $data)

No description

Parameters

array $data

Return Value

void

string serialize() deprecated

deprecated 4.12.0 Use __serialize() instead

The __serialize() magic method will be automatically used instead of this

Return Value

string

unserialize(string $serialized) deprecated

deprecated 4.12.0 Use __unserialize() instead

The __unserialize() magic method will be automatically used instead of this almost all the time This method will be automatically used if existing serialized data was not saved as an associative array and the PHP version used in less than PHP 9.0

Parameters

string $serialized

static flush()

This function is triggered early in the request if the "flush" query parameter has been set. Each class that implements Flushable implements this function which looks after it's own specific flushing functionality.

static protected string canary()

Path to i18n canary

Return Value

string

static protected touch()

Touch the canary