1 | <?php |
||
25 | class RepositoryManager implements RepositoryManagerInterface |
||
26 | { |
||
27 | /** @var array */ |
||
28 | protected $entities = []; |
||
29 | |||
30 | /** @var array */ |
||
31 | protected $repositories = []; |
||
32 | |||
33 | /** @var ManagerRegistry */ |
||
34 | protected $managerRegistry; |
||
35 | |||
36 | /** |
||
37 | * @var RepositoryManagerInterface |
||
38 | */ |
||
39 | private $repositoryManager; |
||
40 | |||
41 | /** |
||
42 | * @param ManagerRegistry $managerRegistry |
||
43 | * @param RepositoryManagerInterface $repositoryManager |
||
44 | */ |
||
45 | 3 | public function __construct(ManagerRegistry $managerRegistry, RepositoryManagerInterface $repositoryManager) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function addIndex(string $indexName, FinderInterface $finder, string $repositoryName = null): void |
||
58 | |||
59 | 3 | public function addEntity($entityName, $indexName) |
|
63 | |||
64 | /** |
||
65 | * Returns custom repository if one specified otherwise returns a basic repository. |
||
66 | * |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 3 | public function getRepository(string $entityName): Repository |
|
83 | |||
84 | public function hasRepository(string $indexName): bool |
||
88 | } |
||
89 |