Skip to content
Snippets Groups Projects
Commit 5209cff3 authored by Robin Appelman's avatar Robin Appelman
Browse files

add conveince function to wrap all storages

parent d042c8f1
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,18 @@ class Filesystem {
*/
private static $loader;
/**
* @param callable $wrapper
*/
public static function addStorageWrapper($wrapper) {
self::getLoader()->addStorageWrapper($wrapper);
$mounts = self::getMountManager()->getAll();
foreach ($mounts as $mount) {
$mount->wrapStorage($wrapper);
}
}
public static function getLoader() {
if (!self::$loader) {
self::$loader = new Loader();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment