Exemplo n.º 1
0
 public static function shutDown()
 {
     if (null !== self::$_instance) {
         if (!spl_autoload_unregister(array(self::$_instance, '_autoload'))) {
             throw new RuntimeException('Could not stop the autoload');
         }
         self::$_instance = null;
     }
 }
Exemplo n.º 2
0
 public static function shutDown()
 {
     if (null !== self::$_instance) {
         if (!spl_autoload_unregister(array(self::$_instance), '_autoload')) {
             throw new RuntimeException('autoload can\'t be disabled');
         }
         self::$_instance = null;
     }
 }