public static unregister ( ) |
public static function unregister()
{
if (!self::$registered) {
if (in_array(vfsStream::SCHEME, stream_get_wrappers())) {
throw new vfsStreamException('The URL wrapper for the protocol ' . vfsStream::SCHEME . ' was not registered with this version of vfsStream.');
}
return;
}
if (!@stream_wrapper_unregister(vfsStream::SCHEME)) {
throw new vfsStreamException('Failed to unregister the URL wrapper for the ' . vfsStream::SCHEME . ' protocol.');
}
self::$registered = false;
}
function letGo() { VfsStreamWrapper::unregister(); }