mirror of
https://github.com/danog/file.git
synced 2024-11-26 11:54:54 +01:00
Rename driver() to createDefaultDriver()
This commit is contained in:
parent
654596edeb
commit
afa16cc0e1
@ -21,7 +21,7 @@ function filesystem(Driver $driver = null): Driver
|
||||
return $driver;
|
||||
}
|
||||
|
||||
$driver = driver();
|
||||
$driver = createDefaultDriver();
|
||||
}
|
||||
|
||||
if (\defined("AMP_WORKER") && $driver instanceof ParallelDriver) {
|
||||
@ -37,7 +37,7 @@ function filesystem(Driver $driver = null): Driver
|
||||
*
|
||||
* @return \Amp\File\Driver
|
||||
*/
|
||||
function driver(): Driver
|
||||
function createDefaultDriver(): Driver
|
||||
{
|
||||
$driver = Loop::get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user