1 | <?php |
||
10 | class DefaultRepositoryFactory implements RepositoryFactory |
||
11 | { |
||
12 | /** |
||
13 | * The list of DocumentRepository instances. |
||
14 | * |
||
15 | * @var array<\Doctrine\Common\Persistence\ObjectRepository> |
||
16 | */ |
||
17 | private $repositoryList = array(); |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 15 | public function getRepository(DocumentManager $documentManager, $documentName) |
|
36 | |||
37 | /** |
||
38 | * Create a new repository instance for a document class. |
||
39 | * |
||
40 | * @param DocumentManager $documentManager The DocumentManager instance. |
||
41 | * @param string $documentName The name of the document. |
||
42 | * |
||
43 | * @return \Doctrine\Common\Persistence\ObjectRepository |
||
44 | */ |
||
45 | 15 | protected function createRepository(DocumentManager $documentManager, $documentName) |
|
57 | } |