-
Notifications
You must be signed in to change notification settings - Fork 0
/
full-config.php
55 lines (51 loc) · 2.3 KB
/
full-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* This configuration is based on the config of roave/psr-container-doctrine to retain familiarity with its style.
* Factories which are used from roave/psr-container-doctrine
* (namely the \Roave\PsrContainerDoctrine\EventManagerFactory) have the same configuration except that the default
* 'odm_default' is used.
*
* @see https://github.com/Roave/psr-container-doctrine/blob/3.1.x/example/full-config.php
*/
declare(strict_types=1);
use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\Repository\DocumentRepository as DefaultDocumentRepository;
return [
'doctrine' => [
'configuration' => [
'odm_default' => [
'metadata_cache' => 'array',
'generate_proxies' => Configuration::AUTOGENERATE_EVAL,
'proxy_dir' => 'data',
'proxy_namespace' => 'DoctrineMongoODMModule\Proxy',
'generate_hydrators' => Configuration::AUTOGENERATE_ALWAYS,
'hydrator_dir' => 'data',
'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
'generate_persistent_collections' => Configuration::AUTOGENERATE_ALWAYS,
'persistent_collection_dir' => 'data',
'persistent_collection_namespace' => 'DoctrineMongoODMModule\PersistentCollection',
'persistent_collection_factory' => null,
'persistent_collection_generator' => null,
'default_db' => null,
'filters' => [],
'class_metadata_factory_name' => null,
'repository_factory' => null,
'types' => [],
'driver' => 'odm_default', // Actually defaults to the configuration config key, not hard-coded
'default_document_repository_class_name' => DefaultDocumentRepository::class,
],
],
'connection' => [
'odm_default' => [
'server' => 'localhost',
'port' => '27017',
'user' => null,
'password' => null,
'dbname' => null,
'connection_string' => null,
'uri_options' => [],
'configuration' => 'odm_default', // Actually defaults to the configuration config key, not hard-coded
],
],
],
];