class ContainerRepositoryFactory implements RepositoryFactory (View source)

Fetches repositories from the container or falls back to normal creation.

Methods

__construct(ContainerInterface $container = null)

No description

getRepository(EntityManagerInterface $entityManager, $entityName)

{@inheritdoc}

Details

__construct(ContainerInterface $container = null)

Parameters

ContainerInterface $container A service locator containing the repositories

getRepository(EntityManagerInterface $entityManager, $entityName)

{@inheritdoc}

Parameters

EntityManagerInterface $entityManager
$entityName