Passed
Push — master ( 08dd0c...2460e1 )
by Koldo
02:21
created

HandlerLocatorFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
3
namespace InFw\TacticianAdapter\Factory;
4
5
use Interop\Container\ContainerInterface;
6
use League\Tactician\Container\ContainerLocator;
7
8
class HandlerLocatorFactory
9
{
10
    public function __invoke(ContainerInterface $container)
11
    {
12
        $commandsMapping = $container->get('config')['command-bus']['handler-map'];
13
14
        return new ContainerLocator($container, $commandsMapping);
15
    }
16
}
17