Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • none

Functions

  • Overview
  • Namespace
  • Function
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: use Nette\Diagnostics\Debugger;
 9: 
10: 
11: if (!function_exists('dump')) {
12:     /**
13:      * Nette\Diagnostics\Debugger::dump() shortcut.
14:      * @tracySkipLocation
15:      */
16:     function dump($var)
17:     {
18:         foreach (func_get_args() as $arg) {
19:             Debugger::dump($arg);
20:         }
21:         return $var;
22:     }
23: }
24: 
25: 
26: if (!function_exists('callback')) {
27:     /**
28:      * Nette\Callback factory.
29:      * @param  mixed   class, object, callable
30:      * @param  string  method
31:      * @return Nette\Callback
32:      */
33:     function callback($callback, $m = NULL)
34:     {
35:         return new Nette\Callback($callback, $m);
36:     }
37: }
38: 
39: class_alias('Nette\Configurator', 'Nette\Config\Configurator');
40: class_alias('Nette\DI\CompilerExtension', 'Nette\Config\CompilerExtension');
41: class_alias('Nette\DI\Compiler', 'Nette\Config\Compiler');
42: 
Nette 2.1 API documentation generated by ApiGen 2.8.0