require KINT_DIR . 'decorators/whitespace.php'; require KINT_DIR . 'decorators/concise.php'; if (is_readable(KINT_DIR . 'config.php')) { require KINT_DIR . 'config.php'; } # init settings if (!empty($GLOBALS['_kint_settings'])) { foreach ($GLOBALS['_kint_settings'] as $key => $val) { property_exists('Kint', $key) and Kint::${$key} = $val; } unset($GLOBALS['_kint_settings']); } if (PHP_SAPI === 'cli') { Kint::$_detected = 'cli'; } elseif (Kint::$ajaxDetection && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') { Kint::$_detected = 'ajax'; } if (Kint::$ajaxDetection && Kint::$_detected !== 'ajax' && Kint::$_detected !== 'cli') { register_shutdown_function('Kint::_ajaxHandler'); } class Kint { // these are all public and 1:1 config array keys so you can switch them easily public static $traceCleanupCallback; public static $fileLinkFormat; public static $hideSequentialKeys; public static $showClassConstants; public static $keyFilterCallback; public static $displayCalledFrom; public static $charEncodings; public static $maxStrLength;