1
0
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:
Aaron Piotrowski 2019-05-30 10:16:32 -05:00
parent 654596edeb
commit afa16cc0e1
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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();