public static function wrap() { foreach (static::$protocols as $protocol) { stream_wrapper_unregister($protocol); stream_wrapper_register($protocol, get_called_class()); } }