/** * Constructor * * Loads debugging data from the static Debug object * * @return void */ public function __construct() { // Safety Net if (!defined('APP_MODE')) { define('APP_MODE', 'PRODUCTION'); } if (APP_MODE == 'DEBUG') { $this->debug = TRUE; } $this->request = Request::get_instance(); $this->traces = Debug::get('traces'); $this->errors = Debug::get('errors'); $this->logs = Debug::get('logs'); $this->events = Debug::get('events'); }
* * @package Elusive\Core */ namespace elusive\core; use elusive\debug\Debug; /** * Define Directory Constants */ define('PATH_ROOT', dirname(dirname(__DIR__))); define('PATH_ELUSIVE', PATH_ROOT . '/elusive'); define('PATH_WEBROOT', PATH_ROOT . '/webroot'); define('PATH_CORE', PATH_ELUSIVE . '/core'); define('PATH_DEBUG', PATH_ELUSIVE . '/debug'); define('PATH_LIB', PATH_ELUSIVE . '/lib'); define('PATH_TMP', PATH_ROOT . '/tmp'); /** * Load and initialize the Debugger */ require_once PATH_DEBUG . '/class.debug.php'; if (!Debug::init()) { trigger_error('Could not initialize Elusive Debugger', E_ERROR); } /** * Load and initialize the Framework Core Class */ Debug::log('Loading Framework...'); require_once PATH_CORE . '/class.elusive.php'; if (!Elusive::init()) { trigger_error('Could not initialize Elusive Framework', E_ERROR); }
</table> </div><!-- #debug_panel_errors --> <div id="debug_panel_timers" class="debug_panel"> <h3>Benchmarks:</h3> <table class="debug_table"> <tr> <th>Benchmark</th> <th>Tag</th> <th>Time</th> <th>Comment</th> </tr> <?php foreach (Debug::get_benchmarks() as $benchmark => $marks) { ?> <?php foreach ($marks as $mark => $data) { ?> <tr> <td><?php echo $benchmark; ?> </td> <td><?php echo $mark; ?> </td> <td><?php echo $data['TIME'];
<?php /** * Elusive Framework Frontloader * * @copyright Copyright (C) 2011-2016 Elusive Concepts, LLC. * @author Roger Soucy <*****@*****.**> * @license https://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 * @version 1.00.000 * * @package Elusive\Frontloader */ use elusive\core\Application; use elusive\debug\Debug; /** * Start Benchmark */ require __DIR__ . '/../elusive/debug/class.debug.php'; require __DIR__ . '/../elusive/lib/class.timer.php'; Debug::start_benchmark('execution_time', 'Starting bootstrap...'); /** * Load the Bootstrap */ require __DIR__ . '/../elusive/core/bootstrap.php'; /** * Run the Application */ Application::run(array('test' => "test"));