Last Updated: February 25, 2016
·
1.9K
· 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"

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#php
#symfony2
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside