use League\Flysystem\FilesystemAdapter;
use League\Flysystem\Local\LocalFilesystemAdapter;
use League\Flysystem\UnixVisibility\PortableVisibilityConverter;
use Shopware\Core\Framework\Log\Package;
use Symfony\Component\OptionsResolver\OptionsResolver;
#[Package('core')]
class LocalFactory implements AdapterFactoryInterface
{ public function create(array
$config): FilesystemAdapter
{ $options =
$this->
resolveOptions($config);
return new LocalFilesystemAdapter( $options['root'
],
PortableVisibilityConverter::
fromArray([ 'file' =>
$options['file'
],
'dir' =>
$options['dir'
],
]),
// Write flags
\LOCK_EX,