初始化
This commit is contained in:
15
addons/webman/filesystem/driver/Local.php
Normal file
15
addons/webman/filesystem/driver/Local.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace addons\webman\filesystem\driver;
|
||||
|
||||
|
||||
use addons\webman\filesystem\AdapterFactoryInterface;
|
||||
|
||||
class Local implements AdapterFactoryInterface
|
||||
{
|
||||
public function make(array $options)
|
||||
{
|
||||
return new \League\Flysystem\Adapter\Local($options['root'], $options['lock'] ?? LOCK_EX);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user