1<?php 2declare(strict_types=1); 3 4namespace ILIAS\Filesystem\Provider\FlySystem; 5 6use ILIAS\Filesystem\Filesystem; 7use ILIAS\Filesystem\Provider\Configuration\LocalConfig; 8use ILIAS\Filesystem\Provider\FilesystemFactory; 9 10/** 11 * Class FlySystemFilesystemFactory 12 * 13 * @author Nicolas Schäfli <ns@studer-raimann.ch> 14 * @since 5.3 15 * @version 1.0.0 16 */ 17final class FlySystemFilesystemFactory implements FilesystemFactory 18{ 19 20 /** 21 * @inheritDoc 22 */ 23 public function getLocal(LocalConfig $config, bool $read_only = false) : Filesystem 24 { 25 $localFactory = new FlySystemLocalFilesystemFactory(); 26 27 return $localFactory->getInstance($config); 28 } 29} 30