/** @var int How many operations can be done in parallel */
protected $concurrency;
+ /** @var string Temporary file directory */
+ protected $tmpDirectory;
+
/** @var LockManager */
protected $lockManager;
* - parallelize : When to do file operations in parallel (when possible).
* Allowed values are "implicit", "explicit" and "off".
* - concurrency : How many file operations can be done in parallel.
+ * - tmpDirectory : Directory to use for temporary files. If this is not set or null,
+ * then the backend will try to discover a usable temporary directory.
* @throws FileBackendException
*/
public function __construct( array $config ) {
? (int)$config['concurrency']
: 50;
$this->statusWrapper = isset( $config['statusWrapper'] ) ? $config['statusWrapper'] : null;
+ $this->tmpDirectory = isset( $config['tmpDirectory'] ) ? $config['tmpDirectory'] : null;
}
/**