diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-09-08 10:41:08 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-09-08 16:25:33 +0100 |
| commit | 696755093df43b466490c9156517a3ffb2d391a2 (patch) | |
| tree | cf76cc2fd7eb2bc0977c4074d69cb74a64da1be1 /app/Http/RequestHandlers/ExportGedcomClient.php | |
| parent | 93386620a4f53d2d1f9a9425466271caeb937965 (diff) | |
| download | webtrees-696755093df43b466490c9156517a3ffb2d391a2.tar.gz webtrees-696755093df43b466490c9156517a3ffb2d391a2.tar.bz2 webtrees-696755093df43b466490c9156517a3ffb2d391a2.zip | |
Use factory to create caches and filesystems
Diffstat (limited to 'app/Http/RequestHandlers/ExportGedcomClient.php')
| -rw-r--r-- | app/Http/RequestHandlers/ExportGedcomClient.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Http/RequestHandlers/ExportGedcomClient.php b/app/Http/RequestHandlers/ExportGedcomClient.php index c14525292d..7e7c91019c 100644 --- a/app/Http/RequestHandlers/ExportGedcomClient.php +++ b/app/Http/RequestHandlers/ExportGedcomClient.php @@ -27,7 +27,6 @@ use Fisharebest\Webtrees\Services\GedcomExportService; use Fisharebest\Webtrees\Tree; use Illuminate\Database\Capsule\Manager as DB; use League\Flysystem\Filesystem; -use League\Flysystem\FilesystemInterface; use League\Flysystem\ZipArchive\ZipArchiveAdapter; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface; @@ -78,8 +77,7 @@ class ExportGedcomClient implements RequestHandlerInterface $tree = $request->getAttribute('tree'); assert($tree instanceof Tree); - $data_filesystem = $request->getAttribute('filesystem.data'); - assert($data_filesystem instanceof FilesystemInterface); + $data_filesystem = Factory::filesystem()->data(); $params = (array) $request->getParsedBody(); |
