Skip to content

Instantly share code, notes, and snippets.

@martiis
Forked from aurelmegn/.zshrc
Created December 4, 2020 08:43
Show Gist options
  • Save martiis/7edefd8554f66c87918b348a6a51bc5d to your computer and use it in GitHub Desktop.
Save martiis/7edefd8554f66c87918b348a6a51bc5d to your computer and use it in GitHub Desktop.
Alias for symfony's console command
## COMPOSER ALIAS
alias cii="composer install --ignore-platform-reqs"
alias cui="composer update --ignore-platform-reqs"
## SYMFONY ALIAS
# Console
alias sf="php bin/console"
alias sfdev="php bin/console --env=dev"
alias sfprod="php bin/console --env=prod"
# Helper
alias sf:cc="php bin/console cache:clear --env=dev && php bin/console cache:clear --env=prod"
alias sf:gb="php bin/console generate:bundle"
alias sf:rd="php bin/console router:debug"
alias sf:dsu="php bin/console doctrine:schema:update --force"
alias sf:dsd="php bin/console doctrine:schema:drop --force"
alias sf:dge="php bin/console doctrine:generate:entity"
alias sf:dges="php bin/console doctrine:generate:entities"
alias sf:hfl="php bin/console hautelook:fixture:load -n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment