InteractiveAuthFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 9 1
1
<?php
2
namespace T4web\Authentication\Service;
3
4
use Zend\ServiceManager\ServiceLocatorInterface;
5
use Zend\ServiceManager\FactoryInterface;
6
use Zend\Session\SessionManager;
7
8
class InteractiveAuthFactory implements FactoryInterface
9
{
10
    /**
11
     * Create service
12
     *
13
     * @param ServiceLocatorInterface $serviceLocator
14
     * @return InteractiveAuth
15
     */
16
    public function createService(ServiceLocatorInterface $serviceLocator)
17
    {
18
        /** @var $authService Authenticator */
19
        $authService = $serviceLocator->get('T4web\Authentication\Service\Authenticator');
20
        /** @var $sessionManager SessionManager */
21
        $sessionManager = $serviceLocator->get('Zend\Session\SessionManager');
22
23
        return new InteractiveAuth($authService, $sessionManager);
24
    }
25
}
26