diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-02 18:42:23 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-02 18:42:57 +0100 |
commit | 48fe85d9bd7fc6a82f54d23befe06c2457b590bc (patch) | |
tree | 6c11c1433044c985db9f2b6fca347df63344eedf /lib/base.php | |
parent | e8afe4f1588ad5697b8ef6627417dfeb4a6c0573 (diff) | |
download | nextcloud-server-48fe85d9bd7fc6a82f54d23befe06c2457b590bc.tar.gz nextcloud-server-48fe85d9bd7fc6a82f54d23befe06c2457b590bc.zip |
add streamwrapper that provides a callback on stream close
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 1 |
1 files changed, 1 insertions, 0 deletions
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']); |