20 $isDumpOutputHtmlSafe = extension_loaded(
'xdebug')
22 && (
false === ini_get(
'xdebug.overload_var_dump') || ini_get(
'xdebug.overload_var_dump'))
25 && (
false === ini_get(
'html_errors') || ini_get(
'html_errors'))
30 new Twig_SimpleFunction(
'dump',
'twig_var_dump', array(
'is_safe' => $isDumpOutputHtmlSafe ? array(
'html') : array(),
'needs_context' =>
true,
'needs_environment' =>
true)),
48 $count = func_num_args();
59 for (
$i = 2;
$i < $count; ++
$i) {
60 var_dump(func_get_arg(
$i));
64 return ob_get_clean();
67 class_alias(
'Twig_Extension_Debug',
'Twig\Extension\DebugExtension',
false);
Represents a template function.
isDebug()
Checks if debug mode is enabled.
getFunctions()
Returns a list of functions to add to the existing list.
getName()
Returns the name of the extension.
Default base class for compiled templates.
Stores the Twig configuration.
twig_var_dump(Twig_Environment $env, $context)