for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LmcUser\Form;
use LmcUser\Options\AuthenticationOptionsInterface;
class ChangePassword extends ProvidesEventsForm
{
/**
* @var AuthenticationOptionsInterface
*/
protected $authOptions;
public function __construct($name, AuthenticationOptionsInterface $options)
$this->setAuthenticationOptions($options);
parent::__construct($name);
$this->add(
array(
'name' => 'identity',
'options' => array(
'label' => '',
),
'attributes' => array(
'type' => 'hidden'
)
);
'name' => 'credential',
'type' => 'password',
'label' => 'Current Password',
'name' => 'newCredential',
'label' => 'New Password',
'name' => 'newCredentialVerify',
'label' => 'Verify New Password',
'name' => 'submit',
'value' => 'Submit',
'type' => 'submit'
}
* Set Authentication-related Options
*
* @param AuthenticationOptionsInterface $authOptions
* @return ChangePassword
public function setAuthenticationOptions(AuthenticationOptionsInterface $authOptions)
$this->authOptions = $authOptions;
return $this;
* Get Authentication-related Options
* @return AuthenticationOptionsInterface
public function getAuthenticationOptions()
return $this->authOptions;