Beispiel #1
0
 /**
  * Returns singleton instance with lazy instantiation.
  * @return NetteLoader
  */
 public static function getInstance()
 {
     if (self::$instance === NULL) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
<?php

try {
    require_once __WEB_ROOT__ . '/Lib/functions.php';
    require_once __WEB_ROOT__ . '/Config/AbstractConfig.php';
    require_once __WEB_ROOT__ . '/Config/localconfig.php';
    require_once __WEB_ROOT__ . '/Bobr/BobrLoader.php';
    Bobr_BobrLoader::getInstance()->base = __WEB_ROOT__;
    Bobr_BobrLoader::getInstance()->register();
    $bobr = new Bobr_Bobr();
    $bobr->run();
} catch (Exception $e) {
    echo $e->getMessage();
}