Passed
Branch issue/#1 (79b692)
by Koldo
02:14
created

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 9
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Event\Container\Config;
6
7
use Antidot\Event\Container\EventDispatcherFactory;
8
use Psr\EventDispatcher\EventDispatcherInterface;
9
10
class ConfigProvider
11
{
12 1
    public function __invoke(): array
13
    {
14
        return [
15 1
            'dependencies' => [
16
                'factories' => [
17
                    EventDispatcherInterface::class => EventDispatcherFactory::class,
18
                ]
19
            ],
20
            'app-events' => [
21
//                'event-listeners' => [
22
//                    'event.name' => [
23
//                        'Listener1',
24
//                        'Listener2',
25
//                        ...
26
//                    ]
27
//                ]
28
            ]
29
        ];
30
    }
31
}
32