ViewWatcher
class ViewWatcher extends Watcher
Traits
Properties
| protected Dispatcher | $events | The event dispatcher. |
Methods
void
string
from
FormatsClosure
void
string
array
array
getComposersForEvent(string $eventName)
Get all view composers for the given event.
bool
isWildcardViewComposer(array $variables, ReflectionFunction $closure)
Determine if the composer is wrapped for a wildcard event.
bool
isViewComposerClosure(ReflectionFunction $closure)
Determine if the closure is a class-based view composer.
Details
in
Watcher at line 18
__construct(array $options = [])
Create a new watcher instance.
at line 31
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
in
FormatsClosure at line 18
protected string
formatClosureListener(Closure $listener)
Format a closure-based listener.
at line 42
void
recordRenderedView(View $view)
Record a rendered view.
at line 59
protected string
extractPath(View $view)
Extract the path from the given view.
at line 73
protected array
extractKeysFromData(View $view)
Extract the keys from the given view in array form.
at line 83
protected array
formatComposers(View $view)
Format the view's composers and creators.
at line 102
protected Collection
getComposersForEvent(string $eventName)
Get all view composers for the given event.
at line 129
protected bool
isWildcardViewComposer(array $variables, ReflectionFunction $closure)
Determine if the composer is wrapped for a wildcard event.
at line 137
protected bool
isViewComposerClosure(ReflectionFunction $closure)
Determine if the closure is a class-based view composer.