summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/ExportGedcomClient.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-05-12 00:38:22 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-05-12 14:19:35 +0100
commita091ac74647eab281b25090b737835eeea14ae10 (patch)
tree5e968be23c54e70f67812b1cca78c7e1e17aa95d /app/Http/RequestHandlers/ExportGedcomClient.php
parentbb03c9f048b83092098d5e46c2ab323ae7e2b314 (diff)
downloadwebtrees-a091ac74647eab281b25090b737835eeea14ae10.tar.gz
webtrees-a091ac74647eab281b25090b737835eeea14ae10.tar.bz2
webtrees-a091ac74647eab281b25090b737835eeea14ae10.zip
Update code to use new Factory objects
Diffstat (limited to 'app/Http/RequestHandlers/ExportGedcomClient.php')
-rw-r--r--app/Http/RequestHandlers/ExportGedcomClient.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Http/RequestHandlers/ExportGedcomClient.php b/app/Http/RequestHandlers/ExportGedcomClient.php
index 4c67ede654..072213546e 100644
--- a/app/Http/RequestHandlers/ExportGedcomClient.php
+++ b/app/Http/RequestHandlers/ExportGedcomClient.php
@@ -2,7 +2,7 @@
/**
* webtrees: online genealogy
- * Copyright (C) 2019 webtrees development team
+ * Copyright (C) 2020 webtrees development team
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -20,10 +20,10 @@ declare(strict_types=1);
namespace Fisharebest\Webtrees\Http\RequestHandlers;
use Fisharebest\Webtrees\Auth;
+use Fisharebest\Webtrees\Factory;
use Fisharebest\Webtrees\Functions\FunctionsExport;
use Fisharebest\Webtrees\GedcomRecord;
use Fisharebest\Webtrees\Http\ViewResponseTrait;
-use Fisharebest\Webtrees\Media;
use Fisharebest\Webtrees\Tree;
use Illuminate\Database\Capsule\Manager as DB;
use League\Flysystem\Filesystem;
@@ -118,7 +118,7 @@ class ExportGedcomClient implements RequestHandlerInterface
$records = DB::table('media')
->where('m_file', '=', $tree->id())
->get()
- ->map(Media::rowMapper($tree))
+ ->map(Factory::media()->mapper($tree))
->filter(GedcomRecord::accessFilter());
foreach ($records as $record) {