]> Raphaël G. Git Repositories - treebundle/blob - Repository/UserRepository.php
Replace findCountAsInt method by countByUidAsInt
[treebundle] / Repository / UserRepository.php
1 <?php declare(strict_types=1);
2
3 /*
4 * This file is part of the Rapsys TreeBundle package.
5 *
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Rapsys\TreeBundle\Repository;
13
14 use Doctrine\ORM\EntityManagerInterface;
15 use Doctrine\ORM\Mapping\ClassMetadata;
16
17 use Psr\Container\ContainerInterface;
18
19 use Rapsys\PackBundle\Util\SluggerUtil;
20 use Rapsys\UserBundle\Repository\UserRepository as BaseUserRepository;
21
22 use Symfony\Component\Routing\RouterInterface;
23 use Symfony\Contracts\Translation\TranslatorInterface;
24
25 /**
26 * UserRepository
27 */
28 class UserRepository extends BaseUserRepository {
29 /**
30 * {@inheritdoc}
31 * @param array $languages The languages list
32 */
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);
36 }
37 }