1 | <?php |
||
19 | class DefaultRepositoryFactory implements RepositoryFactory |
||
20 | { |
||
21 | /** |
||
22 | * The list of DocumentRepository instances. |
||
23 | * |
||
24 | * @var \Doctrine\Common\Persistence\ObjectRepository[] |
||
25 | */ |
||
26 | private $repositoryList = []; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function getRepository(DocumentManager $documentManager, $documentName) |
||
44 | |||
45 | /** |
||
46 | * Create a new repository instance for a document class. |
||
47 | * |
||
48 | * @param DocumentManager $documentManager |
||
49 | * @param string $documentName |
||
50 | * |
||
51 | * @return \Doctrine\Common\Persistence\ObjectRepository |
||
52 | */ |
||
53 | private function createRepository(DocumentManager $documentManager, $documentName) |
||
62 | } |
||
63 |