IndexControllerFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 5
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
6
 * @license   MIT
7
 */
8
9
namespace Cv\Factory\Controller;
10
11
12
use Cv\Controller\IndexController;
13
use Interop\Container\ContainerInterface;
14
use Laminas\ServiceManager\Factory\FactoryInterface;
15
16
class IndexControllerFactory implements FactoryInterface
17
{
18
    /**
19
     * Create a IndexController controller
20
     *
21
     * @param  ContainerInterface $container
22
     * @param  string             $requestedName
23
     * @param  null|array         $options
24
     *
25
     * @return IndexController
26
     */
27
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
28
    {
29
        //$searchForm = $container->get('forms')->get('Cv/SearchForm');
30
31
        return new IndexController();
32
    }
33
34
}