diff --git a/src/EventSubscriber/UserSignedUpSubscriber.php b/src/EventSubscriber/UserSignedUpSubscriber.php index 092c6af..5aeb9f3 100644 --- a/src/EventSubscriber/UserSignedUpSubscriber.php +++ b/src/EventSubscriber/UserSignedUpSubscriber.php @@ -8,10 +8,10 @@ use RZ\Roadiz\UserBundle\Manager\UserValidationTokenManagerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -final class UserSignedUpSubscriber implements EventSubscriberInterface +final readonly class UserSignedUpSubscriber implements EventSubscriberInterface { public function __construct( - private readonly UserValidationTokenManagerInterface $userValidationTokenManager, + private UserValidationTokenManagerInterface $userValidationTokenManager, ) { } diff --git a/src/Manager/UserMetadataManager.php b/src/Manager/UserMetadataManager.php index f9dc858..754e8dd 100644 --- a/src/Manager/UserMetadataManager.php +++ b/src/Manager/UserMetadataManager.php @@ -8,9 +8,9 @@ use RZ\Roadiz\CoreBundle\Entity\User; use RZ\Roadiz\UserBundle\Entity\UserMetadata; -class UserMetadataManager implements UserMetadataManagerInterface +readonly class UserMetadataManager implements UserMetadataManagerInterface { - public function __construct(private readonly ManagerRegistry $managerRegistry) + public function __construct(private ManagerRegistry $managerRegistry) { }