class DumpWatcher extends Watcher

Constants

protected DEFAULT_INSTALLED

Properties

static protected bool $installed

Whether the Telescope dump handler is installed.

Methods

__construct(Factory $cache, array $options = [])

Create a new watcher instance.

void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
array
hideParameters(array $data, array $hidden)

Hide the given parameters.

from  Watcher
bool
shouldRecordDump()

Determine if the dumped value should be recorded.

void
recordDump(string $dump)

Record a dumped variable.

static void
flushState()

Flush all static state.

Details

at line 28
__construct(Factory $cache, array $options = [])

Create a new watcher instance.

Parameters

Factory $cache
array $options

the configured watcher options

at line 38
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 31
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

in Watcher at line 41
protected array hideParameters(array $data, array $hidden)

Hide the given parameters.

Parameters

array $data
array $hidden

Return Value

array

at line 77
protected bool shouldRecordDump()

Determine if the dumped value should be recorded.

Return Value

bool

at line 93
void recordDump(string $dump)

Record a dumped variable.

Parameters

string $dump

Return Value

void

at line 103
static void flushState()

Flush all static state.

Return Value

void