Completed
Push — develop ( 09456b...2094a2 )
by Mathias
14s queued 10s
created

InviteEmployeeControllerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2017 Cross Solution <http://cross-solution.de>
8
 */
9
10
namespace Organizations\Factory\Controller;
11
use Interop\Container\ContainerInterface;
12
use Organizations\Controller\InviteEmployeeController;
13
use Zend\ServiceManager\Factory\FactoryInterface;
14
15
/**
16
 * Create new InviteEmployeeController
17
 *
18
 * @author Anthonius Munthi <[email protected]>
19
 * @package Organizations\Factory\Controller
20
 * @since 0.30
21
 */
22
class InviteEmployeeControllerFactory implements FactoryInterface
23
{
24
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
25
    {
26
        $orgRepo = $container->get('Core/RepositoryService')->get('Organizations/Organization');
27
28
        return new InviteEmployeeController($orgRepo);
29
    }
30
}
31