class ViewWatcher extends Watcher

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
void
recordRenderedView(View $view)

Record a rendered view.

string
extractPath(View $view)

Extract the path from the given view.

array
extractKeysFromData(View $view)

Extract the keys from the given view in array form.

Details

in Watcher at line 16
__construct(array $options = [])

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 20
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

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

Set the watcher options.

Parameters

array $options

Return Value

Watcher

at line 29
void recordRenderedView(View $view)

Record a rendered view.

Parameters

View $view

Return Value

void

at line 46
protected string extractPath(View $view)

Extract the path from the given view.

Parameters

View $view

Return Value

string

at line 60
protected array extractKeysFromData(View $view)

Extract the keys from the given view in array form.

Parameters

View $view

Return Value

array