1 <?php
declare(strict_types
=1);
4 * This file is part of the Rapsys TreeBundle package.
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Rapsys\TreeBundle\Repository
;
14 use Doctrine\ORM\EntityManagerInterface
;
15 use Doctrine\ORM\Mapping\ClassMetadata
;
17 use Psr\Container\ContainerInterface
;
19 use Rapsys\PackBundle\Util\SluggerUtil
;
20 use Rapsys\UserBundle\Repository\UserRepository
as BaseUserRepository
;
22 use Symfony\Component\Routing\RouterInterface
;
23 use Symfony\Contracts\Translation\TranslatorInterface
;
28 class UserRepository
extends BaseUserRepository
{
31 * @param array $languages The languages list
33 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) {
34 //Call parent constructor
35 parent
::__construct($manager, $class, $container, $router, $slugger, $translator, $locale);