HtmlDumper
class HtmlDumper extends HtmlDumper (View source)
Traits
Constants
EXPANDED_SEPARATOR |
Where the source should be placed on "expanded" kind of dumps. |
NON_EXPANDED_SEPARATOR |
Where the source should be placed on "non expanded" kind of dumps. |
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 | $dumpSourceResolver | from ResolvesDumpSource | |
protected string | $basePath | The base path of the application. |
|
protected string | $compiledViewPath | The compiled view path of the application. |
|
protected bool | $dumping | If the dumper is currently dumping. |
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.
Don't include the location / file of the dump in dumps.
Create a new HTML dumper instance.
Create a new HTML dumper instance and register it as the default dumper.
Dump a variable with its source file / line.
Get the dump's source HTML content.
Details
resolveDumpSource()
Resolve the source of the dump call.
protected bool
isCompiledViewFile(string $file)
Determine if the given file is a view compiled.
protected string
getOriginalFileForCompiledView(string $file)
Get the original view compiled file by the given compiled file.
protected string|null
resolveSourceHref(string $file, int|null $line)
Resolve the source href, if possible.
static
resolveDumpSourceUsing($callable)
No description
static void
dontIncludeSource()
Don't include the location / file of the dump in dumps.
void
__construct(string $basePath, string $compiledViewPath)
Create a new HTML dumper instance.
static void
register(string $basePath, string $compiledViewPath)
Create a new HTML dumper instance and register it as the default dumper.
void
dumpWithSource(Data $data)
Dump a variable with its source file / line.
protected string
getDumpSourceContent()
Get the dump's source HTML content.