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

ChangePassword   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 9 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Clayton Daley
5
 * Date: 3/10/2015
6
 * Time: 9:34 AM
7
 */
8
9
namespace ZfcUser\Factory\Form;
10
11
use Interop\Container\ContainerInterface;
12
use Interop\Container\Exception\ContainerException;
13
use Zend\Form\FormElementManager;
14
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
15
use Zend\ServiceManager\Exception\ServiceNotFoundException;
16
use Zend\ServiceManager\Factory\FactoryInterface;
17
use Zend\ServiceManager\ServiceLocatorInterface;
18
use ZfcUser\Form;
19
20
class ChangePassword implements FactoryInterface
21
{
22
    public function __invoke(ContainerInterface $serviceManager, $requestedName, array $options = null)
23
    {
24
        $options = $serviceManager->get('zfcuser_module_options');
25
        $form = new Form\ChangePassword(null, $options);
26
27
        $form->setInputFilter(new Form\ChangePasswordFilter($options));
28
29
        return $form;
30
    }
31
}
32