/usr/share/php/Nette/shortcuts.php is in php-nette 2.4-20160731-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | <?php
require __DIR__ . '/SafeStream/SafeStream.php';
Nette\Utils\SafeStream::register();
/**
* This file is part of the Tracy (https://tracy.nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
if (!function_exists('dump')) {
/**
* Tracy\Debugger::dump() shortcut.
* @tracySkipLocation
*/
function dump($var)
{
array_map('Tracy\Debugger::dump', func_get_args());
return $var;
}
}
if (!function_exists('bdump')) {
/**
* Tracy\Debugger::barDump() shortcut.
* @tracySkipLocation
*/
function bdump($var)
{
call_user_func_array('Tracy\Debugger::barDump', func_get_args());
return $var;
}
}
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
if (!function_exists('dlog')) {
/**
* Tracy\Debugger::log() shortcut.
*/
function dlog($var = NULL)
{
trigger_error(__FUNCTION__ . '() is deprecated.', E_USER_DEPRECATED);
if (func_num_args() === 0) {
Tracy\Debugger::log(new Exception, 'dlog');
}
foreach (func_get_args() as $arg) {
Tracy\Debugger::log($arg, 'dlog');
}
return $var;
}
}
if (!function_exists('callback')) {
/**
* Nette\Callback factory.
* @param mixed class, object, callable
* @param string method
* @return Nette\Callback
*/
function callback($callback, $m = NULL)
{
trigger_error(__FUNCTION__ . '() is deprecated; use native PHP callback.', E_USER_DEPRECATED);
return new Nette\Callback($callback, $m);
}
}
|