Last Updated: February 25, 2016
·
1.622K
· searsaw

Handy Symfony2 Aliases

For all of these to work, your Symfony2 installation should include the following packages in addition to the default Symfony packages:

  • DoctrineMigrationsBundle
  • DoctrineFixturesBundle

    alias console="php app/console"
    alias entity="php app/console doctrine:generate:entity"
    alias bundle="php app/console generate:bundle"
    alias cc="php app/console cache:clear"
    alias diff="php app/console doctrine:migrations:diff"
    alias migrate="php app/console doctrine:migrations:migrate"
    alias fixload="php app/console doctrine:fixtures:load"
    alias controller="php app/console generate:controller"
    alias routes="php app/console router:debug"
    alias server="php app/console server:run"