]> Raphaël G. Git Repositories - treebundle/commitdiff
Add languages extra argument
authorRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:57:55 +0000 (04:57 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:57:55 +0000 (04:57 +0100)
Repository/UserRepository.php

index b2cfbd6e48e5e1efcc79108b07628ce05c6ced13..1082078b50390e9e442b910b24c8a862df7e4c1f 100644 (file)
@@ -17,4 +17,12 @@ use Rapsys\UserBundle\Repository\UserRepository as BaseUserRepository;
  * UserRepository
  */
 class UserRepository extends BaseUserRepository {
+       /**
+        * {@inheritdoc}
+        * @param array $languages The languages list
+        */
+       public function __construct(protected EntityManagerInterface $manager, protected ClassMetadata $class, protected ContainerInterface $container, protected RouterInterface $router, protected SluggerUtil $slugger, protected TranslatorInterface $translator, protected string $locale, protected array $languages) {
+               //Call parent constructor
+               parent::__construct($manager, $class, $container, $router, $slugger, $translator, $locale);
+       }
 }