fs = $fs; } /** * {@inheritdoc} */ public function import($source, $target) { try { $this->fs->mirror($source, $target); } catch (FsException $e) { try { $this->fs->remove($target); } catch (FsException $e) { } throw new ImportFailureException(sprintf('Unable to import from `%s` to `%s`', $source, $target), $e->getCode(), $e); } } }