for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Clayton Daley
* Date: 3/10/2015
* Time: 9:34 AM
*/
namespace ZfcUser\Factory\Form;
use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Zend\Form\FormElementManager;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ServiceManager\Factory\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\Form;
class ChangePassword implements FactoryInterface
{
public function __invoke(ContainerInterface $serviceManager, $requestedName, array $options = null)
$options = $serviceManager->get('zfcuser_module_options');
$form = new Form\ChangePassword(null, $options);
$form->setInputFilter(new Form\ChangePasswordFilter($options));
return $form;
}