Rector changes: repositories become final readonly classes

This commit is contained in:
2024-07-18 09:49:05 +02:00
parent 3fc3f32c5f
commit c82991674e
42 changed files with 111 additions and 111 deletions

View File

@@ -27,18 +27,18 @@ use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Mime\MimeTypes;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
final class ChillDocumentManager implements DocumentManagerInterface
final readonly class ChillDocumentManager implements DocumentManagerInterface
{
private readonly RequestInterface $request;
private RequestInterface $request;
public function __construct(
private readonly DocumentLockManagerInterface $documentLockManager,
private readonly EntityManagerInterface $entityManager,
private DocumentLockManagerInterface $documentLockManager,
private EntityManagerInterface $entityManager,
HttpMessageFactoryInterface $httpMessageFactory,
private readonly Psr17Interface $psr17,
private Psr17Interface $psr17,
RequestStack $requestStack,
private readonly StoredObjectManagerInterface $storedObjectManager,
private readonly StoredObjectRepository $storedObjectRepository
private StoredObjectManagerInterface $storedObjectManager,
private StoredObjectRepository $storedObjectRepository
) {
$this->request = $httpMessageFactory->createRequest($requestStack->getCurrentRequest());
}