コード例 #1
0
ファイル: Autoload.php プロジェクト: unuldur/ProjetPhp
 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;
     }
 }
コード例 #2
0
ファイル: Autoload.php プロジェクト: pierreLiaubet/ProjetJS
 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;
     }
 }