public static function getInstance($registry)
 {
     if (null === self::$instance) {
         self::$instance = new self($registry);
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
}
// Install
if (!defined('DIR_APPLICATION')) {
    header('Location: install/index.php');
    exit;
}
require_once 'init.php';
require_once '../core/autoloader.php';
require_once '../core/registry.php';
require_once '../core/loader.php';
$registry = new Registry();
//database
$db = DB::getInstance();
$db->select_db(DB_DATABASE);
$registry->set('db', $db);
$sessionHandler = mysqlbackendsessionhandler::getInstance($registry);
session_set_save_handler($sessionHandler);
//session
$session = Session::getInstance();
$registry->set('session', $session);
//request
$request = new Request();
$registry->set('request', $request);
//doucment
$registry->set('document', new Document());
//debuger
$debuger = new debuger();
$registry->set('debuger', $debuger);
$debuger->chrono();
//config
$config = new Config();