1 | <?php |
||
23 | class ManagerBuilder extends AbstractBuilderCollection |
||
24 | { |
||
25 | const METADATA_MAPPING_ANNOTATION = Builder::METADATA_MAPPING_ANNOTATION; |
||
26 | const METADATA_MAPPING_XML = Builder::METADATA_MAPPING_XML; |
||
27 | const METADATA_MAPPING_YAML = Builder::METADATA_MAPPING_YAML; |
||
28 | const METADATA_MAPPING_PHP = Builder::METADATA_MAPPING_PHP; |
||
29 | |||
30 | /** |
||
31 | * Global annotation loader control. |
||
32 | * |
||
33 | * @var bool |
||
34 | */ |
||
35 | protected $globalLoaderRegister = true; |
||
36 | |||
37 | /** |
||
38 | * Load Doctrine managers from settings array. |
||
39 | * |
||
40 | * @param array $settings |
||
41 | * |
||
42 | * @throws \RuntimeException |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function loadSettings(array $settings) |
||
62 | |||
63 | /** |
||
64 | * Register ORM entity managers. |
||
65 | * |
||
66 | * @param array $settings |
||
67 | * |
||
68 | * @throws \RuntimeException |
||
69 | */ |
||
70 | protected function registerEntityManagers(array $settings) |
||
84 | |||
85 | /** |
||
86 | * Register MongoDB ODM document managers. |
||
87 | * |
||
88 | * @param array $settings |
||
89 | * |
||
90 | * @throws \RuntimeException |
||
91 | */ |
||
92 | protected function registerMongoDBDocumentManagers(array $settings) |
||
106 | |||
107 | /** |
||
108 | * Register CouchDB ODM document managers. |
||
109 | * |
||
110 | * @param array $settings |
||
111 | * |
||
112 | * @throws \RuntimeException |
||
113 | */ |
||
114 | protected function registerCouchDBDocumentManagers(array $settings) |
||
128 | |||
129 | /** |
||
130 | * Get registered builder's managers. |
||
131 | * |
||
132 | * @return \Doctrine\Common\Persistence\ObjectManager[] |
||
133 | */ |
||
134 | public function getManagers() |
||
147 | |||
148 | /** |
||
149 | * Get registered builder's manager. |
||
150 | * |
||
151 | * @param string $name |
||
152 | * |
||
153 | * @throws \RuntimeException |
||
154 | * |
||
155 | * @return \Doctrine\Common\Persistence\ObjectManager |
||
156 | */ |
||
157 | public function getManager($name) |
||
170 | |||
171 | /** |
||
172 | * Get console application. |
||
173 | * |
||
174 | * @return Application |
||
175 | */ |
||
176 | public function getCLIApplication() |
||
193 | |||
194 | /** |
||
195 | * Register global annotation loader. |
||
196 | * class_exists function. |
||
197 | */ |
||
198 | protected function registerGlobalAnnotationLoader() |
||
206 | } |
||
207 |