trait RegistersWatchers

Properties

static protected array $watchers

The class names of the registered watchers.

Methods

static bool
hasWatcher(string $class)

Determine if a given watcher has been registered.

static void
flushWatchers()

Flush the registered watchers.

static void
registerWatchers(Application $app)

Register the configured Telescope watchers.

Details

at line 19
static bool hasWatcher(string $class)

Determine if a given watcher has been registered.

Parameters

string $class

Return Value

bool

at line 31
static void flushWatchers()

Flush the registered watchers.

Boot or tests only. Clears the worker-wide watcher registry; runtime use can cause later watcher checks to diverge from already-registered listeners.

Return Value

void

at line 39
static protected void registerWatchers(Application $app)

Register the configured Telescope watchers.

Parameters

Application $app

Return Value

void