function flysystem_factory in Flysystem 7
Returns the Flysystem factory.
Return value
\Drupal\flysystem\FlysystemFactory Returns the Flysystem factory.
1 call to flysystem_factory()
- _flysystem_config_form_copy_file in ./
flysystem.admin.inc - Copies a single file.
File
- ./
flysystem.module, line 244 - Provides access to various filesystem backends using Flysystem.
Code
function flysystem_factory() {
$factory =& drupal_static(__FUNCTION__, NULL);
if (!isset($factory)) {
$factory = new FlysystemFactory(variable_get('flysystem', array()));
}
return $factory;
}