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

ZfcUserIdentity::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Clayton Daley
5
 * Date: 5/6/2015
6
 * Time: 6:53 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 ZfcUserIdentity implements FactoryInterface
20
{
21
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
22
    {
23
        $viewHelper = new View\Helper\ZfcUserIdentity;
24
        $viewHelper->setAuthService($container->get('zfcuser_auth_service'));
25
        return $viewHelper;
26
    }
27
}
28