#1159 - protecting Doctrine\ORM\Repository\DefaultRepositoryFactory
API by making it final
and its protected
members private
This commit is contained in:
parent
a9847533e5
commit
8093c6ddb0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user