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

InviteEmployeeControllerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
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