Last active
October 21, 2019 19:20
-
-
Save laminr/a61687517dc2df83b261e6f0f51fe9e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php bin/console server:dump | |
| php bin/console server:dump --format=html > dump.html | |
| // Launch Web server | |
| php bin/console server:run | |
| php bin/console config:dump-reference | |
| php bin/console hautelook:fixtures:load | |
| // Security | |
| php bin/console make:user | |
| php bin/console make:auth | |
| php bin/console make:registration-form | |
| // Database | |
| php bin/console make:migration | |
| php bin/console doctrine:migrations:migrate | |
| Swith User: ROLE_ALLOWED_TO_SWITCH | |
| ?_switch_user=<email> | |
| // in Twig -- special role that tell that you have swith to another account | |
| {% if is_granted('ROLE_PREVIOUS_ADMIN') %} | |
| <div class="alert alert-warning" style="margin-bottom: 0;">You are currently switched to this user.</div> | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment