Completed
Push — develop ( 9659b8...659b85 )
by Mathias
31:55 queued 13:03
created

EntityEraserFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license    MIT
7
 * @copyright  2013 - 2018 Cross Solution <http://cross-solution.de>
8
 */
9
10
/** */
11
12
namespace Core\Controller\Plugin;
13
14
use Interop\Container\ContainerInterface;
15
use Zend\ServiceManager\Factory\FactoryInterface;
16
17
/**
18
 * Factory for \Core\Controller\Plugin\EntityEraser
19
 *
20
 * @author Mathias Gelhausen <[email protected]>
21
 * @todo   write test
22
 */
23
class EntityEraserFactory implements FactoryInterface
24
{
25
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
26
    {
27
        return new EntityEraser(
28
            $container->get('Core/EntityEraser/Dependencies/Events'),
29
            $container->get('Core/EntityEraser/Load/Events'),
30
            $container->get('repositories')
31
        );
32
    }
33
}
34