Create a service to duplicate a storedObject into another one

This commit is contained in:
2024-09-19 17:47:55 +02:00
parent 77d06d756a
commit 5f67a7aadc
3 changed files with 98 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ namespace Chill\DocStoreBundle\Service;
use Chill\DocStoreBundle\Entity\StoredObjectVersion;
use Psr\Log\LoggerInterface;
/**
* Class responsible for restoring stored object versions into the same stored object.
*/
final readonly class StoredObjectRestore implements StoredObjectRestoreInterface
{
public function __construct(private readonly StoredObjectManagerInterface $storedObjectManager, private readonly LoggerInterface $logger) {}