Completed
Push — 2.x ( a081e5 )
by Daniel
15:13
created

ZfcUserDisplayName   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Clayton Daley
5
 * Date: 5/6/2015
6
 * Time: 6:52 PM
7
 */
8
9
namespace ZfcUser\Factory\View\Helper;
10
11
use Interop\Container\ContainerInterface;
12
use Interop\Container\Exception\ContainerException;
13
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
14
use Zend\ServiceManager\Exception\ServiceNotFoundException;
15
use Zend\ServiceManager\Factory\FactoryInterface;
16
use Zend\ServiceManager\ServiceLocatorInterface;
17
use ZfcUser\View;
18
19
class ZfcUserDisplayName implements FactoryInterface
20
{
21
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
22
    {
23
        $viewHelper = new View\Helper\ZfcUserDisplayName;
24
        $viewHelper->setAuthService($container->get('zfcuser_auth_service'));
25
        return $viewHelper;
26
    }
27
}
28