ResolvesDumpSource
trait ResolvesDumpSource
Resolve dump sources for consumers that provide $basePath and $compiledViewPath properties.
Traits
Resolve source links for consumers that provide a $basePath property.
Properties
| protected array<string, string> | $editorHrefs | All of the href formats for common editors. |
from ResolvesSourceHref |
| static protected array<string, int> | $adjustableTraces | Files that require special trace handling and their levels. |
|
| static protected null|callable(): null|array{0: string, 1: string, 2: null|int}|false | $dumpSourceResolver | The source resolver. |
Methods
Resolve the source href, if possible.
Resolve the source of the dump call.
Determine if the given file is a view compiled.
Get the original view compiled file by the given compiled file.
Set the resolver that resolves the source of the dump call.
Don't include the location / file of the dump in dumps.
Flush all static state.
Details
in
ResolvesSourceHref at line 50
protected string|null
resolveSourceHref(string $file, int|null $line)
Resolve the source href, if possible.
at line 36
array|null
resolveDumpSource()
Resolve the source of the dump call.
at line 98
protected bool
isCompiledViewFile(string $file)
Determine if the given file is a view compiled.
at line 110
protected string
getOriginalFileForCompiledView(string $file)
Get the original view compiled file by the given compiled file.
at line 135
static void
resolveDumpSourceUsing(callable|null $callable)
Set the resolver that resolves the source of the dump call.
Boot-only. The resolver persists in a static property for the worker lifetime and runs on every dump source resolution across all coroutines.
at line 146
static void
dontIncludeSource()
Don't include the location / file of the dump in dumps.
Boot-only. The flag persists in a static property for the worker lifetime and applies to every dump source resolution across all coroutines.
at line 154
static void
flushState()
Flush all static state.