36
36
*/
37
37
class MakeResetPassword extends AbstractMaker
38
38
{
39
- /**
40
- * @var FileManager
41
- */
42
39
private $ fileManager ;
43
40
44
41
public function __construct (FileManager $ fileManager )
@@ -110,6 +107,8 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
110
107
$ interactiveSecurityHelper ->guessPasswordSetter ($ io , $ userClass )
111
108
);
112
109
110
+ $ io ->text (sprintf ('Implementing reset password for <info>%s</info> ' , $ userClass ));
111
+
113
112
$ io ->section ('- ResetPasswordController - ' );
114
113
$ io ->text ('A named route is used for redirecting after a successful reset. Even a route that does not exist yet can be used here. ' );
115
114
$ input ->setArgument ('controller-reset-success-redirect ' , $ io ->ask (
@@ -119,8 +118,6 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
119
118
)
120
119
);
121
120
122
- $ io ->text (sprintf ('Implementing reset password for <info>%s</info> ' , $ userClass ));
123
-
124
121
$ io ->section ('- Email Templates - ' );
125
122
$ emailText [] = 'These are used to generate the email code. Don \'t worry, you can change them in the code later! ' ;
126
123
$ io ->text ($ emailText );
@@ -263,7 +260,8 @@ private function setBundleConfig(ConsoleStyle $io, Generator $generator, string
263
260
*/
264
261
if (!$ configFileExists ) {
265
262
$ io ->text (sprintf ('We can \'t find %s. That \'s ok, you probably have a customized configuration. ' , $ path ));
266
- $ io ->text ('Just remember to set the correct <fg=yellow>symfonycasts_reset_password: request_password_repository</> value. ' );
263
+ $ io ->text ('Just remember to set the <fg=yellow>request_password_repository</> in your configuration. ' );
264
+ $ io ->newLine ();
267
265
268
266
return ;
269
267
}
0 commit comments