class ContainerRepositoryFactory implements RepositoryFactory (View source)

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

Methods

__construct(ContainerInterface $container)

No description

getRepository(DocumentManager $documentManager, string $documentName)

{@inheritdoc}

Details

__construct(ContainerInterface $container)

Parameters

ContainerInterface $container A service locator containing the repositories

getRepository(DocumentManager $documentManager, string $documentName)

{@inheritdoc}

Parameters

DocumentManager $documentManager
string $documentName