From 8093c6ddb07885e3b37f1e562c7fe5f1d53817b5 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 14 Oct 2014 01:46:50 +0200 Subject: [PATCH] #1159 - protecting `Doctrine\ORM\Repository\DefaultRepositoryFactory` API by making it `final` and its `protected` members `private` --- lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php index 16751c705..12163eff6 100644 --- a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php +++ b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php @@ -27,7 +27,7 @@ use Doctrine\ORM\EntityManagerInterface; * @author Guilherme Blanco * @since 2.4 */ -class DefaultRepositoryFactory implements RepositoryFactory +final class DefaultRepositoryFactory implements RepositoryFactory { /** * The list of EntityRepository instances. @@ -58,7 +58,7 @@ class DefaultRepositoryFactory implements RepositoryFactory * * @return \Doctrine\Common\Persistence\ObjectRepository */ - protected function createRepository(EntityManagerInterface $entityManager, $entityName) + private function createRepository(EntityManagerInterface $entityManager, $entityName) { /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadata */ $metadata = $entityManager->getClassMetadata($entityName);