Corrected template. Replaced booleans with int values from config constants

This commit is contained in:
eugene
2021-10-22 16:51:56 -04:00
committed by Dennis Riehle
parent b42f2837dd
commit 2d9d1503b6

View File

@@ -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' => [],
],
],
],
];