PageRenderTime 47ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/libs/Nette/loader.php

https://github.com/Vrtak-CZ/ORM-benchmark
PHP | 54 lines | 20 code | 12 blank | 22 comment | 1 complexity | 6308da9ebddb2ffaafb718e1111ca691 MD5 | raw file
  1. <?php
  2. /**
  3. * Nette Framework
  4. *
  5. * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
  6. *
  7. * This source file is subject to the "Nette license" that is bundled
  8. * with this package in the file license.txt, and/or GPL license.
  9. *
  10. * For more information please see http://nette.org
  11. *
  12. * @copyright Copyright (c) 2004, 2010 David Grudl
  13. * @license http://nette.org/license Nette license
  14. * @link http://nette.org
  15. * @category Nette
  16. * @package Nette
  17. */
  18. /**
  19. * Check and reset PHP configuration.
  20. */
  21. error_reporting(E_ALL | E_STRICT);
  22. @set_magic_quotes_runtime(FALSE); // @ - deprecated since PHP 5.3.0
  23. iconv_set_encoding('internal_encoding', 'UTF-8');
  24. extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
  25. header('X-Powered-By: Nette Framework');
  26. /**
  27. * Load and configure Nette Framework
  28. */
  29. define('NETTE', TRUE);
  30. define('NETTE_DIR', __DIR__);
  31. define('NETTE_VERSION_ID', 10000); // v1.0.0
  32. define('NETTE_PACKAGE', '5.3');
  33. require_once __DIR__ . '/Utils/shortcuts.php';
  34. require_once __DIR__ . '/Utils/exceptions.php';
  35. require_once __DIR__ . '/Utils/Framework.php';
  36. require_once __DIR__ . '/Utils/Object.php';
  37. require_once __DIR__ . '/Utils/ObjectMixin.php';
  38. require_once __DIR__ . '/Utils/Callback.php';
  39. require_once __DIR__ . '/Loaders/LimitedScope.php';
  40. require_once __DIR__ . '/Loaders/AutoLoader.php';
  41. require_once __DIR__ . '/Loaders/NetteLoader.php';
  42. Nette\Loaders\NetteLoader::getInstance()->register();