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; } }
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; } }