Exemplo n.º 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;
 }
 /**
  * Returns singleton instance with lazy instantiation.
  *
  * @return NetteLoader
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new static();
     }
     return self::$instance;
 }
Exemplo n.º 3
0
 /**
  * Returns singleton instance with lazy instantiation.
  * @return NetteLoader
  */
 public static function getInstance()
 {
     if (self::$instance === NULL) {
         self::$instance = new self();
         foreach (self::$instance->list as $type => $foo) {
             if ($a = strrpos($type, '\\')) {
                 self::$instance->aliases['n' . substr($type, $a + 1)] = $type;
             }
         }
     }
     return self::$instance;
 }