Ejemplo n.º 1
0
use Monolog\Handler\NullHandler;
//------------------------------------------------------------------------------
//
//  Bootstrapping
//
//------------------------------------------------------------------------------
require_once __DIR__ . '/framework/System.php';
// Backward compatible autoloading
if (!function_exists('spl_autoload_register')) {
    function __autoload($name)
    {
        System::__autoload($name);
    }
}
// Autoloaders and module prefixes are setup here.
System::bootstrap();
// Error & Exception handling.
framework\ExceptionsHandler::setHandlers();
// Call this one to check if enviroment is valid.
System::environment();
// Global system constants
require_once __DIR__ . '/framework/constants.php';
// Functional programming
require_once __DIR__ . '/framework/functions.php';
//------------------------------------------------------------------------------
//
//  Database initialization
//
//------------------------------------------------------------------------------
/*! TODO @ 8 May, 2015
 *  DatabaseOptions will be replaced by IDatabaseAdapter interface, and