X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/blogbundle/blobdiff_plain/d4c245278d35fdcc266b9ba9edee4f02c885df15:/Repository/EntityRepository.php..5dce306d21ca8d60202f620244ec1cc68f42d35d:/Repository.php?ds=inline 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);