Skip to content

Instantly share code, notes, and snippets.

@laminr
Last active October 21, 2019 19:20
Show Gist options
  • Select an option

  • Save laminr/a61687517dc2df83b261e6f0f51fe9e0 to your computer and use it in GitHub Desktop.

Select an option

Save laminr/a61687517dc2df83b261e6f0f51fe9e0 to your computer and use it in GitHub Desktop.
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