Frame
class Frame
Traits
Properties
| protected array<string, string> | $editorHrefs | All of the href formats for common editors. |
from ResolvesDumpSource |
| static protected array<string, int> | $adjustableTraces | Files that require special trace handling and their levels. |
from ResolvesDumpSource |
| static protected null|callable(): null|array{0: string, 1: string, 2: null|int}|false | $dumpSourceResolver | The source resolver. |
from ResolvesDumpSource |
| protected string | $compiledViewPath | The compiled view path (required by ResolvesDumpSource, unused by Frame). |
|
| protected bool | $isMain | Whether this frame is the main (first non-vendor) frame. |
Methods
Determine if the given file is a view compiled.
Get the original view compiled file by the given compiled file.
Resolve the source href, if possible.
Set the resolver that resolves the source of the dump call.
Don't include the location / file of the dump in dumps.
Create a new frame instance.
Get the frame's source / origin.
Get the frame's editor link.
Get the frame's class, if any.
Get the frame's file.
Get the frame's line number.
Get the frame's function operator.
Get the frame's function or method.
Get the frame's arguments.
Get the frame's code snippet.
Determine if the frame is from the vendor directory.
Mark this frame as the main frame.
Determine if this is the main frame.
Details
in
ResolvesDumpSource at line 65
array|null
resolveDumpSource()
Resolve the source of the dump call.
in
ResolvesDumpSource at line 127
protected bool
isCompiledViewFile(string $file)
Determine if the given file is a view compiled.
in
ResolvesDumpSource at line 139
protected string
getOriginalFileForCompiledView(string $file)
Get the original view compiled file by the given compiled file.
in
ResolvesDumpSource at line 159
protected string|null
resolveSourceHref(string $file, int|null $line)
Resolve the source href, if possible.
in
ResolvesDumpSource at line 196
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.
in
ResolvesDumpSource at line 207
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.
in
ResolvesDumpSource at line 215
static void
flushState()
Flush all static state.
at line 33
__construct(FlattenException $exception, array $classMap, array $frame, string $basePath, Frame|null $previous = null)
Create a new frame instance.
at line 45
string
source()
Get the frame's source / origin.
at line 56
string|null
editorHref()
Get the frame's editor link.
at line 64
string|null
class()
Get the frame's class, if any.
at line 78
string
file()
Get the frame's file.
at line 90
int
line()
Get the frame's line number.
at line 106
string
operator()
Get the frame's function operator.
at line 114
string
callable()
Get the frame's function or method.
at line 125
array
args()
Get the frame's arguments.
at line 144
string
snippet()
Get the frame's code snippet.
at line 162
bool
isFromVendor()
Determine if the frame is from the vendor directory.
at line 171
Frame|null
previous()
Get the previous frame.
at line 179
void
markAsMain()
Mark this frame as the main frame.
at line 187
bool
isMain()
Determine if this is the main frame.