<?php
/*
* Springy web launcher script.
*
* @copyright 2007 Fernando Val
* @author Fernando Val <[email protected]>
*
* @version 6.0.0
*
* @codingStandardsIgnoreFile
*/
define('SPRINGY_START', microtime(true));
require __DIR__ . '/../consts';
// Loads the Composer autoload
require __DIR__ . '/../vendor/autoload.php';
// Load framework configuration
$sysconf = file_exists('sysconf.php') ? require_once 'sysconf.php' : [];
// Define error handlers
error_reporting(E_ALL);
set_exception_handler('springyExceptionHandler');
set_error_handler('springyErrorHandler');
// System start
ob_start();
Springy\Kernel::run($sysconf);
if (count(ob_list_handlers())) {
ob_end_flush();
}
|