Dont make new version if content didnt change

This commit is contained in:
Tim
2023-12-24 01:06:30 +01:00
parent 6f64f29177
commit b2bc519e26
4 changed files with 14 additions and 11 deletions

View File

@ -6,10 +6,10 @@ use App\Entity\Snip;
use App\Service\SnipContent\SnipContentService;
use Doctrine\ORM\EntityManagerInterface;
class SnipServiceFactory
readonly class SnipServiceFactory
{
public function __construct(
private readonly EntityManagerInterface $em,
private EntityManagerInterface $em,
) {}
public function create(Snip $snip): SnipContentService