1 | <?php |
||
28 | class MongoDBBuilder extends AbstractManagerBuilder |
||
29 | { |
||
30 | /** |
||
31 | * Document Manager. |
||
32 | * |
||
33 | * @var DocumentManager |
||
34 | */ |
||
35 | protected $manager; |
||
36 | |||
37 | /** |
||
38 | * Logger callable. |
||
39 | * |
||
40 | * @var callable |
||
41 | */ |
||
42 | protected $loggerCallable; |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | protected function getDefaultOptions() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | * |
||
78 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
||
79 | * @throws \InvalidArgumentException |
||
80 | * @throws \RuntimeException |
||
81 | * @throws \UnexpectedValueException |
||
82 | * |
||
83 | * @return DocumentManager |
||
84 | */ |
||
85 | public function getManager($standalone = false, $force = false) |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | protected function wipe() |
||
108 | |||
109 | /** |
||
110 | * Build Doctrine MongoDB Document Manager. |
||
111 | * |
||
112 | * @param bool $standalone |
||
113 | * |
||
114 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
||
115 | * @throws \InvalidArgumentException |
||
116 | * @throws \RuntimeException |
||
117 | * @throws \UnexpectedValueException |
||
118 | * |
||
119 | * @return DocumentManager |
||
120 | */ |
||
121 | protected function buildManager($standalone = false) |
||
156 | |||
157 | /** |
||
158 | * Create MongoDB Connection. |
||
159 | * |
||
160 | * @param Configuration $config |
||
161 | * |
||
162 | * @throws \InvalidArgumentException |
||
163 | * @throws \RuntimeException |
||
164 | * |
||
165 | * @return Connection |
||
166 | */ |
||
167 | protected function getConnection(Configuration $config) |
||
195 | |||
196 | /** |
||
197 | * {@inheritdoc} |
||
198 | * |
||
199 | * @return AnnotationDriver |
||
200 | */ |
||
201 | protected function getAnnotationMetadataDriver(array $paths) |
||
205 | |||
206 | /** |
||
207 | * {@inheritdoc} |
||
208 | * |
||
209 | * @return XmlDriver |
||
210 | */ |
||
211 | protected function getXmlMetadataDriver(array $paths, $extension = null) |
||
215 | |||
216 | /** |
||
217 | * {@inheritdoc} |
||
218 | * |
||
219 | * @return YamlDriver |
||
220 | */ |
||
221 | protected function getYamlMetadataDriver(array $paths, $extension = null) |
||
225 | |||
226 | /** |
||
227 | * Retrieve hydrators path. |
||
228 | * |
||
229 | * @return string |
||
230 | */ |
||
231 | protected function getHydratorsPath() |
||
235 | |||
236 | /** |
||
237 | * Retrieve hydrators namespace. |
||
238 | * |
||
239 | * @return null|string |
||
240 | */ |
||
241 | protected function getHydratorsNamespace() |
||
247 | |||
248 | /** |
||
249 | * Retrieve hydrators generation strategy. |
||
250 | * |
||
251 | * @return int |
||
252 | */ |
||
253 | protected function getHydratorsAutoGeneration() |
||
257 | |||
258 | /** |
||
259 | * Retrieve persistent collections path. |
||
260 | * |
||
261 | * @return string |
||
262 | */ |
||
263 | protected function getPersistentCollectionPath() |
||
267 | |||
268 | /** |
||
269 | * Retrieve persistent collections namespace. |
||
270 | * |
||
271 | * @return null|string |
||
272 | */ |
||
273 | protected function getPersistentCollectionNamespace() |
||
279 | |||
280 | /** |
||
281 | * Retrieve persistent collections generation strategy. |
||
282 | * |
||
283 | * @return int |
||
284 | */ |
||
285 | protected function getAutoGeneratePersistentCollection() |
||
289 | |||
290 | /** |
||
291 | * Get default repository class name |
||
292 | * |
||
293 | * @return string|null |
||
294 | */ |
||
295 | protected function getDefaultRepositoryClass() |
||
301 | |||
302 | /** |
||
303 | * Get default database. |
||
304 | * |
||
305 | * @return string|null |
||
306 | */ |
||
307 | protected function getDefaultDatabase() |
||
311 | |||
312 | /** |
||
313 | * Retrieve logger callable. |
||
314 | * |
||
315 | * @return callable|null |
||
316 | */ |
||
317 | protected function getLoggerCallable() |
||
329 | |||
330 | /** |
||
331 | * {@inheritdoc} |
||
332 | * |
||
333 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
||
334 | * @throws \InvalidArgumentException |
||
335 | * @throws \RuntimeException |
||
336 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
337 | * @throws \Symfony\Component\Console\Exception\LogicException |
||
338 | * @throws \UnexpectedValueException |
||
339 | * |
||
340 | * @return Command[] |
||
341 | */ |
||
342 | public function getConsoleCommands() |
||
379 | |||
380 | /** |
||
381 | * {@inheritdoc} |
||
382 | * |
||
383 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
||
384 | * @throws \InvalidArgumentException |
||
385 | * @throws \RuntimeException |
||
386 | * @throws \UnexpectedValueException |
||
387 | */ |
||
388 | public function getConsoleHelperSet() |
||
394 | } |
||
395 |