| 1 | <?php |
||
| 10 | class DoctrineManagerRegistry implements ManagerRegistry |
||
| 11 | { |
||
| 12 | protected $managers; |
||
| 13 | protected $connections; |
||
| 14 | protected $defaultManager; |
||
| 15 | protected $defaultConnection; |
||
| 16 | protected $name; |
||
| 17 | |||
| 18 | public function __construct($name, array $connections, array $managers, $defaultConnection = 'default', $defaultManager = 'default') |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function getDefaultConnectionName() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getConnection($name = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function getConnections() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function getConnectionNames() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function getDefaultManagerName() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritdoc} |
||
| 73 | */ |
||
| 74 | public function getManager($name = null) |
||
| 82 | |||
| 83 | /** |
||
| 84 | * {@inheritdoc} |
||
| 85 | */ |
||
| 86 | public function getManagers() |
||
| 90 | /** |
||
| 91 | * {@inheritdoc} |
||
| 92 | */ |
||
| 93 | public function resetManager($name = null) |
||
| 94 | { |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * {@inheritdoc} |
||
| 99 | */ |
||
| 100 | public function getAliasNamespace($alias) |
||
| 101 | { |
||
| 102 | } |
||
| 103 | |||
| 104 | /** |
||
| 105 | * {@inheritdoc} |
||
| 106 | */ |
||
| 107 | public function getManagerNames() |
||
| 108 | { |
||
| 109 | return array_keys($this->managers); |
||
| 110 | } |
||
| 111 | |||
| 112 | /** |
||
| 113 | * {@inheritdoc} |
||
| 114 | */ |
||
| 115 | public function getRepository($persistentObject, $persistentManagerName = null) |
||
| 116 | { |
||
| 117 | $this->getManager($persistentManagerName)->getRepository($persistentObject); |
||
| 118 | } |
||
| 119 | |||
| 120 | /** |
||
| 121 | * {@inheritdoc} |
||
| 122 | */ |
||
| 123 | public function getManagerForClass($class) |
||
| 134 | } |
||
| 135 |