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\FileUtil
;
20 use Rapsys\PackBundle\Util\SluggerUtil
;
21 use Rapsys\UserBundle\Repository\UserRepository
as BaseUserRepository
;
23 use Symfony\Component\Routing\RouterInterface
;
24 use Symfony\Contracts\Translation\TranslatorInterface
;
29 class UserRepository
extends BaseUserRepository
{
32 * @param array $languages The languages list
34 public function __construct(protected EntityManagerInterface
$manager, protected ClassMetadata
$class, protected ContainerInterface
$container, protected FileUtil
$file, protected RouterInterface
$router, protected SluggerUtil
$slugger, protected TranslatorInterface
$translator, protected string $locale, protected array $languages) {
35 //Call parent constructor
36 parent
::__construct($manager, $class, $container, $router, $slugger, $translator, $locale);