mirror of
https://github.com/doctrine/DoctrineMongoODMModule.git
synced 2026-03-23 22:32:11 +01:00
Corrected template. Replaced booleans with int values from config constants
This commit is contained in:
@@ -1,33 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Doctrine\ODM\MongoDB\Configuration;
|
||||
use Doctrine\ODM\MongoDB\Repository\DocumentRepository as DefaultDocumentRepository;
|
||||
|
||||
return array(
|
||||
'doctrine' => array(
|
||||
return [
|
||||
'doctrine' => [
|
||||
|
||||
'connection' => array(
|
||||
'odm_default' => array(
|
||||
'connection' => [
|
||||
'odm_default' => [
|
||||
// 'server' => 'localhost',
|
||||
// 'port' => '27017',
|
||||
// 'connectionString' => null,
|
||||
// 'user' => null,
|
||||
// 'password' => null,
|
||||
// 'dbname' => null,
|
||||
// 'options' => array()
|
||||
),
|
||||
),
|
||||
// 'options' => [],
|
||||
],
|
||||
],
|
||||
|
||||
'configuration' => array(
|
||||
'odm_default' => array(
|
||||
'configuration' => [
|
||||
'odm_default' => [
|
||||
// 'metadata_cache' => 'array',
|
||||
//
|
||||
// 'driver' => 'odm_default',
|
||||
//
|
||||
// 'generate_proxies' => true,
|
||||
// 'generate_proxies' => Configuration::AUTOGENERATE_EVAL,
|
||||
// 'proxy_dir' => 'data/DoctrineMongoODMModule/Proxy',
|
||||
// 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy',
|
||||
//
|
||||
// 'generate_hydrators' => true,
|
||||
// 'generate_hydrators' => Configuration::AUTOGENERATE_ALWAYS,
|
||||
// 'hydrator_dir' => 'data/DoctrineMongoODMModule/Hydrator',
|
||||
// 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
|
||||
//
|
||||
@@ -39,32 +40,35 @@ return array(
|
||||
//
|
||||
// 'default_db' => null,
|
||||
//
|
||||
// 'filters' => array(), // array('filterName' => 'BSON\Filter\Class'),
|
||||
// 'filters' => [], // ['filterName' => 'BSON\Filter\Class'],
|
||||
//
|
||||
// // custom types
|
||||
// 'types' => [],
|
||||
//
|
||||
// 'logger' => null // 'DoctrineMongoODMModule\Logging\DebugStack',
|
||||
//
|
||||
// 'default_document_repository_class_name' => DefaultDocumentRepository::class,
|
||||
)
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
'driver' => array(
|
||||
'odm_default' => array(
|
||||
// 'drivers' => array()
|
||||
)
|
||||
),
|
||||
'driver' => [
|
||||
'odm_default' => [
|
||||
// 'drivers' => [],
|
||||
],
|
||||
],
|
||||
|
||||
'documentmanager' => array(
|
||||
'odm_default' => array(
|
||||
'documentmanager' => [
|
||||
'odm_default' => [
|
||||
// 'connection' => 'odm_default',
|
||||
// 'configuration' => 'odm_default',
|
||||
// 'eventmanager' => 'odm_default'
|
||||
)
|
||||
),
|
||||
// 'eventmanager' => 'odm_default',
|
||||
],
|
||||
],
|
||||
|
||||
'eventmanager' => array(
|
||||
'odm_default' => array(
|
||||
'subscribers' => array()
|
||||
)
|
||||
),
|
||||
),
|
||||
);
|
||||
'eventmanager' => [
|
||||
'odm_default' => [
|
||||
'subscribers' => [],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user