Projekt

Obecné

Profil

Stáhnout (1.82 KB) Statistiky
| Větev: | Tag: | Revize:
31ca0a32 Michal Kliment
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Kohana process control file, loaded by the front controller.
74a7dbca Michal Kliment
*
31ca0a32 Michal Kliment
* $Id: Bootstrap.php 1968 2008-02-06 21:41:29Z Shadowhand $
*
* @package Core
* @author Kohana Team
* @copyright (c) 2007 Kohana Team
* @license http://kohanaphp.com/license.html
*/

define('KOHANA_VERSION', '2.1.1');
define('KOHANA_CODENAME', 'Schneefeier');

// Kohana benchmarks are prefixed by a random string to prevent collisions
define('SYSTEM_BENCHMARK', uniqid());

// Load benchmarking support
require SYSPATH.'core/Benchmark'.EXT;

// Start: total_execution
Benchmark::start(SYSTEM_BENCHMARK.'_total_execution');

// Start: kohana_loading
Benchmark::start(SYSTEM_BENCHMARK.'_kohana_loading');

// Define Kohana error constant
defined('E_KOHANA') or define('E_KOHANA', 42);
// Define 404 error constant
defined('E_PAGE_NOT_FOUND') or define('E_PAGE_NOT_FOUND', 43);
// Define database error constant
defined('E_DATABASE_ERROR') or define('E_DATABASE_ERROR', 44);
// Define extra E_RECOVERABLE_ERROR for PHP < 5.2
defined('E_RECOVERABLE_ERROR') or define('E_RECOVERABLE_ERROR', 4096);
// Load core files
require SYSPATH.'core/utf8'.EXT;
require SYSPATH.'core/Config'.EXT;
74a7dbca Michal Kliment
require __DIR__.'/TestConfig'.EXT;
TestConfig::init(); // set DB configuration

31ca0a32 Michal Kliment
require SYSPATH.'core/Log'.EXT;
require SYSPATH.'core/Event'.EXT;
require SYSPATH.'core/Kohana'.EXT;

74a7dbca Michal Kliment
// test classes
require __DIR__.'/AbstractItCase'.EXT;

31ca0a32 Michal Kliment
// End: kohana_loading
Benchmark::stop(SYSTEM_BENCHMARK.'_kohana_loading');

// Start: system_initialization
Benchmark::start(SYSTEM_BENCHMARK.'_system_initialization');

Event::run('system.ready');
//Event::run('system.routing');

// End: system_initialization
//Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization');

//Event::run('system.execute');
74a7dbca Michal Kliment
Event::run('system.shutdown');