Skip to content

Instantly share code, notes, and snippets.

@achraf-jeday
Last active June 11, 2020 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achraf-jeday/64f17b0cbdd353b49ea3ee074d65ea7c to your computer and use it in GitHub Desktop.
Save achraf-jeday/64f17b0cbdd353b49ea3ee074d65ea7c to your computer and use it in GitHub Desktop.
Symfony framework useful commands
# Execute PHPUnit tests in Symfony:
vendor/bin/phpunit -d memory_limit=-1 --group active
# Execute php code sniffer for Symfony:
phpcs --standard=Symfony --extensions=php --ignore=node_modules,bower_components,vendor DemandeController.php
phpcbf --standard=Symfony --extensions=php --ignore=node_modules,bower_components,vendor DemandeController.php
# Execute console commands from the host with docker-compose:
docker-compose exec php php bin/console doctrine:schema:update --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment