$adapterFactoryArray =
iterator_to_array($adapterFactories, false
);
$this->
checkDuplicates($adapterFactoryArray);
$this->adapterFactories =
$adapterFactoryArray;
} /**
* {@inheritdoc}
*/
public function factory(array
$config) { $config =
$this->
resolveFilesystemConfig($config);
$factory =
$this->
findAdapterFactory($config['type'
]);
return new Filesystem( $factory->
create($config['config'
]),
['visibility' =>
$config['visibility'
]] );
} /**
* @param string $type
*
* @throws AdapterFactoryNotFoundException
*
* @return AdapterFactoryInterface
*/