Dont make new version if content didnt change
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user