* 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;
*
* {@inheritdoc}
*/
-class EntityRepository extends BaseEntityRepository {
+class Repository extends EntityRepository {
/**
* The RouterInterface instance
*
* @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);