From: Raphaƫl Gertz Date: Thu, 26 Nov 2026 15:52:07 +0000 (+0100) Subject: Rename entity repository to repository X-Git-Tag: 0.0.2~8 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/blogbundle/commitdiff_plain/5dce306d21ca8d60202f620244ec1cc68f42d35d Rename entity repository to repository --- diff --git a/Repository/EntityRepository.php b/Repository.php similarity index 92% rename from Repository/EntityRepository.php rename to Repository.php index 9036eca..493884a 100644 --- a/Repository/EntityRepository.php +++ b/Repository.php @@ -9,10 +9,10 @@ * file that was distributed with this source code. */ -namespace Rapsys\BlogBundle\Repository; +namespace Rapsys\BlogBundle; use Doctrine\ORM\EntityManagerInterface; -use Doctrine\ORM\EntityRepository as BaseEntityRepository; +use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Mapping\ClassMetadata; use Symfony\Component\Routing\RouterInterface; use Symfony\Contracts\Translation\TranslatorInterface; @@ -24,7 +24,7 @@ use Rapsys\PackBundle\Util\SluggerUtil; * * {@inheritdoc} */ -class EntityRepository extends BaseEntityRepository { +class Repository extends EntityRepository { /** * The RouterInterface instance * @@ -85,7 +85,7 @@ class EntityRepository extends BaseEntityRepository { * @param array $languages The languages list * @param string $locale The current locale */ - public function __construct(EntityManagerInterface $manager, ClassMetadata $class, RouterInterface $router, SluggerUtil $slugger, TranslatorInterface $translator, array $languages, string $locale) { + public function __construct(protected EntityManagerInterface $manager, ClassMetadata $class, RouterInterface $router, SluggerUtil $slugger, TranslatorInterface $translator, array $languages, string $locale) { //Call parent constructor parent::__construct($manager, $class);