From b20530b89ec8502d67d6bc64e915ce68f1d1cc2a Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 12 Aug 2016 10:47:55 -0500 Subject: [PATCH] Update for loop registry changes --- lib/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index dc0237d..c19e89d 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -13,14 +13,14 @@ const LOOP_STATE_IDENTIFIER = Driver::class; */ function filesystem(Driver $driver = null) { if ($driver === null) { - $driver = Loop::fetchState(LOOP_STATE_IDENTIFIER); + $driver = Loop::getState(LOOP_STATE_IDENTIFIER); if ($driver) { return $driver; } $driver = driver(); } - Loop::storeState(LOOP_STATE_IDENTIFIER, $driver); + Loop::setState(LOOP_STATE_IDENTIFIER, $driver); return $driver; }