You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
597 B

<?php
declare(strict_types=1);
namespace App\Service;
use App\Entity\Article;
use App\Repository\ArticleMagazineRepository;
/**
* Associates ingested long-form rows with the current magazine tenant on a shared database.
*/
final class ArticleMagazineRegistry
{
public function __construct(
private readonly TenantContext $tenant,
private readonly ArticleMagazineRepository $articleMagazineRepository,
) {
}
public function link(Article $article): void
{
$this->articleMagazineRepository->link($this->tenant->getMagazineSlug(), $article);
}
}