php bin/console make:security:form-login
Generate the code needed for the form_login authenticator
Usage
make:security:form-login [--with-tests]
Options
--with-tests Generate PHPUnit Tests
Help
The make:security:form-login command generates a controller and twig template
to allow users to login using the form_login authenticator.
The controller name, and logout ability can be customized by answering the
questions asked when running make:security:form-login.
This will also update your security.yaml for the new authenticator.
php bin/console make:security:form-login
To generate tailored PHPUnit tests, simply call:
php bin/console make:security:form-login --with-tests
This will generate a unit test in tests/ for you to review then use
to test the new functionality of your app.