for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
namespace Auth\Form;
use Core\Form\Form;
use Zend\ServiceManager\ServiceLocatorInterface;
use Auth\Form\Hydrator\UserPasswordHydrator;
class UserPassword extends Form
{
* @var ServiceLocatorInterface
protected $forms;
public function getHydrator()
if (!$this->hydrator) {
$hydrator = new UserPasswordHydrator();
$this->setHydrator($hydrator);
}
return $this->hydrator;
public function init()
$this->setName('user-password-form');
$this->add(
array(
'type' => 'hidden',
'name' => 'id',
)
);
$this->forms->get('Auth/UserPasswordFieldset')
$this->add($this->forms->get('submitField'));
* @param ServiceLocatorInterface $forms
* @return UserPassword
public static function factory(ServiceLocatorInterface $forms)
$form = new static();
$form->forms = $forms;
return $form;