1
0
mirror of synced 2024-12-04 18:56:06 +03:00

#1159 - protecting Doctrine\ORM\Repository\DefaultRepositoryFactory API by making it final and its protected members private

This commit is contained in:
Marco Pivetta 2014-10-14 01:46:50 +02:00
parent a9847533e5
commit 8093c6ddb0

View File

@ -27,7 +27,7 @@ use Doctrine\ORM\EntityManagerInterface;
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @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);