Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0248d6

Browse files
committed
minor#5938 Add proper use of the password type (themccallister)
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes#5938).Discussion----------Add proper use of the password typeThe documentation still referenced using the old `type`.Updated the code to use `PasswordType::class` vice `password`.Commits-------7bd1f22 Add proper use of the password type
2 parents340ec5f +7bd1f22 commitd0248d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎cookbook/doctrine/registration_form.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Next, create the form for the ``User`` entity::
160160
use Symfony\Component\Form\Extension\Core\Type\EmailType;
161161
use Symfony\Component\Form\Extension\Core\Type\TextType;
162162
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
163+
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
163164

164165
class UserType extends AbstractType
165166
{
@@ -169,7 +170,7 @@ Next, create the form for the ``User`` entity::
169170
->add('email', EmailType::class)
170171
->add('username', TextType::class)
171172
->add('plainPassword', RepeatedType::class, array(
172-
'type' =>'password',
173+
'type' =>PasswordType::class,
173174
'first_options' => array('label' => 'Password'),
174175
'second_options' => array('label' => 'Repeat Password'),
175176
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp