ConfigProvider::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 7
ccs 2
cts 2
cp 1
crap 1
rs 10
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
    /**
13
     * @return array<mixed>
14
     */
15 3
    public function __invoke(): array
16
    {
17
        return [
18
            'factories' => [
19 3
                EventDispatcherInterface::class => EventDispatcherFactory::class,
20
            ],
21
            'app-events' => [
22
//                'event-listeners' => [
23
//                    'event.name' => [
24
//                        'Listener1',
25
//                        'Listener2',
26
//                        ...
27
//                    ]
28
//                ]
29
            ]
30
        ];
31
    }
32
}
33