From 48fe85d9bd7fc6a82f54d23befe06c2457b590bc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 2 Mar 2012 18:42:23 +0100 Subject: add streamwrapper that provides a callback on stream close --- lib/base.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/base.php') diff --git a/lib/base.php b/lib/base.php index 336ff9fa231..4e24f9f44ac 100644 --- a/lib/base.php +++ b/lib/base.php @@ -148,6 +148,7 @@ class OC{ require_once('streamwrappers.php'); stream_wrapper_register("fakedir", "OC_FakeDirStream"); stream_wrapper_register('static', 'OC_StaticStreamWrapper'); + stream_wrapper_register('close', 'OC_CloseStreamWrapper'); // calculate the documentroot OC::$DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']); -- cgit v1.2.3