1 | <?php |
||
19 | class RepositoryManager implements RepositoryManagerInterface |
||
20 | { |
||
21 | /** @var array */ |
||
22 | protected $entities = array(); |
||
23 | |||
24 | /** @var array */ |
||
25 | protected $repositories = array(); |
||
26 | |||
27 | /** @var ManagerRegistry */ |
||
28 | protected $managerRegistry; |
||
29 | |||
30 | 5 | /** |
|
31 | * @var RepositoryManagerInterface |
||
32 | 5 | */ |
|
33 | 5 | private $repositoryManager; |
|
34 | 5 | ||
35 | /** |
||
36 | * @param ManagerRegistry $managerRegistry |
||
37 | * @param RepositoryManagerInterface $repositoryManager |
||
38 | */ |
||
39 | public function __construct(ManagerRegistry $managerRegistry, RepositoryManagerInterface $repositoryManager) |
||
44 | 5 | ||
45 | 1 | /** |
|
46 | 1 | * @inheritDoc |
|
47 | */ |
||
48 | public function addType($indexTypeName, FinderInterface $finder, $repositoryName = null) |
||
52 | |||
53 | public function addEntity($entityName, $indexTypeName) |
||
57 | |||
58 | /** |
||
59 | * Returns custom repository if one specified otherwise returns a basic repository. |
||
60 | * |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getRepository($entityName) |
||
77 | } |
||
78 |