Methods |
public
|
__construct(Parser $p, Renderer $r)
|
#
|
public
|
setParser(Parser $p)
|
#
|
public
|
getParser()
|
#
|
public
|
setRenderer(Renderer $r)
|
#
|
public
|
getRenderer()
|
#
|
public
|
setStatesFromStatics(array $statics)
|
#
|
public
|
setStatesFromCallInfo(array $info)
|
#
|
public
|
dumpAll(array $vars, BasicObject[] $base): string
Renders a list of vars including the pre and post renders.
Renders a list of vars including the pre and post renders.
Parameters
$vars |
Data to dump
|
$base |
Base objects
|
|
#
|
public
|
dumpVar(mixed &$var, BasicObject $base): string
Dumps and renders a var.
Parameters
$var |
Data to dump
|
$base |
Base object
|
|
#
|
public
static
|
getStatics(): array
Gets all static settings at once.
Gets all static settings at once.
Returns
|
#
|
public
static
|
createFromStatics(array $statics): null|Kint
Creates a Kint instances based on static settings.
Creates a Kint instances based on static settings.
Also calls setStatesFromStatics for you
Parameters
$statics |
array of statics as returned by getStatics
|
|
#
|
public
static
|
getBasesFromParamInfo(array $params, int $argc): BasicObject[]
Creates base objects given parameter info.
Creates base objects given parameter info.
Parameters
$params |
Parameters as returned from getCallInfo
|
$argc |
Number of arguments the helper was called with
|
Returns
Base objects for the arguments
|
#
|
public
static
|
getCallInfo(
array $aliases,
array[] $trace,
int $argc,
): array{params: (null|array), modifiers: array, callee: (null|array), caller: (null|array), trace: array[]}
Gets call info from the backtrace, alias, and argument count.
Gets call info from the backtrace, alias, and argument count.
Aliases must be normalized beforehand (Utils::normalizeAliases)
Parameters
$aliases |
Call aliases as found in Kint::$aliases
|
$trace |
Backtrace
|
$argc |
Number of arguments
|
Returns
|
#
|
public
static
|
trace(): int|string
Dumps a backtrace.
Dumps a backtrace.
Functionally equivalent to Kint::dump(1) or Kint::dump(debug_backtrace(true))
|
#
|
public
static
|
dump(): int|string
Dumps some data.
Dumps some data.
Functionally equivalent to Kint::dump(1) or Kint::dump(debug_backtrace(true))
|
#
|
public
static
|
shortenPath(string $file): string
generic path display callback, can be configured in app_root_dirs; purpose is
to show relevant path info and hide as…
generic path display callback, can be configured in app_root_dirs; purpose is
to show relevant path info and hide as much of the path as possible.
|
#
|
public
static
|
getIdeLink($file, $line)
|
#
|
protected
static
|
getSingleCall(array $frame, int $argc): null|array{parameters: array, modifiers: array}
Returns specific function call info from a stack trace frame, or null if no match could be found.
Returns specific function call info from a stack trace frame, or null if no match could be found.
Parameters
$frame |
The stack trace frame in question
|
$argc |
The amount of arguments received
|
Returns
params and modifiers, or null if a specific call could not be determined
|
#
|
Properties |
public
static
|
mixed
|
$enabled_mode = true
Kint mode
|
#
|
public
static
|
string
|
$mode_default = self::MODE_RICH
|
#
|
public
static
|
string
|
$mode_default_cli = self::MODE_CLI
|
#
|
public
static
|
bool
|
$return
Return output instead of echoing
Return output instead of echoing
|
#
|
public
static
|
string
|
$file_link_format = ''
format of the link to the source file in trace entries.
format of the link to the source file in trace entries.
|
#
|
public
static
|
bool
|
$display_called_from = true
whether to display where kint was called from
whether to display where kint was called from
|
#
|
public
static
|
array
|
$app_root_dirs = []
base directories of your application that will be displayed instead of the full path.
base directories of your application that will be displayed instead of the full path.
|
#
|
public
static
|
int
|
$max_depth = 6
max array/object levels to go deep, if zero no limits are applied
max array/object levels to go deep, if zero no limits are applied
|
#
|
public
static
|
bool
|
$expanded = false
expand all trees by default for rich view
expand all trees by default for rich view
|
#
|
public
static
|
bool
|
$cli_detection = true
enable detection when Kint is command line.
enable detection when Kint is command line.
|
#
|
public
static
|
array
|
$aliases = [['Kint\\Kint', 'dump'], ['Kint\\Kint', 'trace'], ['Kint\\Kint', 'dumpArray']]
Kint aliases. Add debug functions in Kint wrappers here to fix modifiers and backtraces
Kint aliases. Add debug functions in Kint wrappers here to fix modifiers and backtraces
|
#
|
public
static
|
array<mixed, string>
|
$renderers = [
self::MODE_RICH => 'Kint\\Renderer\\RichRenderer',
self::MODE_PLAIN => 'Kint\\Renderer\\PlainRenderer',
self::MODE_TEXT => 'Kint\\Renderer\\TextRenderer',
self::MODE_CLI => 'Kint\\Renderer\\CliRenderer',
]
Array of modes to renderer class names
Array of modes to renderer class names
|
#
|
public
static
|
|
$plugins = [
'Kint\\Parser\\ArrayObjectPlugin',
'Kint\\Parser\\Base64Plugin',
'Kint\\Parser\\BlacklistPlugin',
'Kint\\Parser\\ClassMethodsPlugin',
'Kint\\Parser\\ClassStaticsPlugin',
'Kint\\Parser\\ClosurePlugin',
'Kint\\Parser\\ColorPlugin',
'Kint\\Parser\\DateTimePlugin',
'Kint\\Parser\\FsPathPlugin',
'Kint\\Parser\\IteratorPlugin',
'Kint\\Parser\\JsonPlugin',
'Kint\\Parser\\MicrotimePlugin',
'Kint\\Parser\\SimpleXMLElementPlugin',
'Kint\\Parser\\SplFileInfoPlugin',
'Kint\\Parser\\SplObjectStoragePlugin',
'Kint\\Parser\\StreamPlugin',
'Kint\\Parser\\TablePlugin',
'Kint\\Parser\\ThrowablePlugin',
'Kint\\Parser\\TimestampPlugin',
'Kint\\Parser\\TracePlugin',
'Kint\\Parser\\XmlPlugin',
]
|
#
|
protected
static
|
|
$plugin_pool = []
|
#
|
protected
|
|
$parser
|
#
|
protected
|
|
$renderer
|
#
|