Passed
Push — master ( ad8719...8e7dfc )
by Koldo
02:19
created

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Persistence\DBAL\Container\Config;
6
7
use Antidot\Persistence\DBAL\Container\DBALConnectionFactory;
8
use Doctrine\DBAL\Connection;
9
10
class ConfigProvider
11
{
12
    public const DEFAULT_CONFIG = [
13
        'factories' => [
14
            Connection::class => DBALConnectionFactory::class,
15
        ],
16
        'dbal' => [
17
            'connections' => [
18
//                    'default' => [
19
//                        'url' => 'mysql://user:secret@localhost/mydb',
20
//                    ],
21
//                    'other'=> [
22
//                        'url' => 'mysql://user:secret@localhost/another_db',
23
//                    ],
24
            ]
25
        ],
26
    ];
27
28
29 1
    public function __invoke(): array
30
    {
31 1
        return self::DEFAULT_CONFIG;
32
    }
33
}
34