Completed
Pull Request — 8.x-2.x (#24)
by Frédéric G.
03:04
created

example.settings.local.php ➔ configure_mongodb()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 10
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 17
rs 9.4285
1
<?php
2
/**
3
 * @file
4
 * Example settings to connect to MongoDB.
5
 *
6
 * This is the default data to add to your settings.local.php.
7
 */
8
9
$settings['mongodb'] = [
10
  'clients' => [
11
    // Client alias => constructor parameters.
12
    'default' => [
13
      'uri' => 'mongodb://localhost:27017',
14
      'uriOptions' => [],
15
      'driverOptions' => [],
16
    ],
17
  ],
18
  'databases' => [
19
    // Collection alias => [ client_alias, collection_name ]
20
    'default' => ['default', 'drupal'],
21
    'logger' => ['default', 'logger'],
22
  ],
23
];
24