summaryrefslogtreecommitdiff
path: root/resources/views/modules/relatives/family.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2023-03-31 18:14:01 +0100
committerGreg Roach <greg@subaqua.co.uk>2023-04-03 22:37:37 +0100
commitd35568b467207589ea9059739da0bf1f7e785a0d (patch)
treec9a9fafeddaa4c5359249b3a7fd9aeca3b556c3b /resources/views/modules/relatives/family.phtml
parentd9ea0e86582fe4bcb21969eb1dafa8be7d592091 (diff)
downloadwebtrees-d35568b467207589ea9059739da0bf1f7e785a0d.tar.gz
webtrees-d35568b467207589ea9059739da0bf1f7e785a0d.tar.bz2
webtrees-d35568b467207589ea9059739da0bf1f7e785a0d.zip
Replace illuminate/container with our own simpler container
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
-rw-r--r--resources/views/modules/relatives/family.phtml7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index 8a6d5ba07c..0aea018f49 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -11,6 +11,7 @@ use Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage;
use Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Registry;
use Fisharebest\Webtrees\Services\RelationshipService;
/**
@@ -45,7 +46,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
<tr class="<?= $row_class ?>">
<th scope="row">
<?= $individual === $person ? '<i class="icon-selected"></i>' : '' ?>
- <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
+ <?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
</th>
<td class="border-0 p-0">
<?= view('chart-box', ['individual' => $person]) ?>
@@ -83,7 +84,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
<tr class="<?= $row_class ?>">
<th scope="row">
<?= $individual === $person ? '<i class="icon-selected"></i>' : '' ?>
- <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
+ <?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
</th>
<td class="border-0 p-0">
<?= view('chart-box', ['individual' => $person]) ?>
@@ -198,7 +199,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
</div>
<?php endif ?>
- <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
+ <?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?>
</th>
<td class="border-0 p-0">
<?= view('chart-box', ['individual' => $person]) ?>