mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
Update for loop registry changes
This commit is contained in:
parent
1725c684a0
commit
b20530b89e
@ -13,14 +13,14 @@ const LOOP_STATE_IDENTIFIER = Driver::class;
|
|||||||
*/
|
*/
|
||||||
function filesystem(Driver $driver = null) {
|
function filesystem(Driver $driver = null) {
|
||||||
if ($driver === null) {
|
if ($driver === null) {
|
||||||
$driver = Loop::fetchState(LOOP_STATE_IDENTIFIER);
|
$driver = Loop::getState(LOOP_STATE_IDENTIFIER);
|
||||||
if ($driver) {
|
if ($driver) {
|
||||||
return $driver;
|
return $driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
$driver = driver();
|
$driver = driver();
|
||||||
}
|
}
|
||||||
Loop::storeState(LOOP_STATE_IDENTIFIER, $driver);
|
Loop::setState(LOOP_STATE_IDENTIFIER, $driver);
|
||||||
return $driver;
|
return $driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user