Skip to content

Instantly share code, notes, and snippets.

@tiste
Last active August 29, 2015 14:00
Show Gist options
  • Save tiste/11178993 to your computer and use it in GitHub Desktop.
Save tiste/11178993 to your computer and use it in GitHub Desktop.
Bootstrap a Symfony app

Bootstrap Symfony app

composer create-project symfony/framework-standard-edition appname
cd appname
rm -rf app/logs/* app/cache/*
chmod 777 app/logs && chmod 777 app/cache
rm -rf src/Acme

Then delete Acme' references into:

  • app/config/routing_dev.yml
  • app/AppKernel.yml
  • web/bundles/acmedemo

Create a bundle

php app/console generate:bundle --namespace=ReadItLater/MainBundle --format=yml

Don't forget to rename the bundle via the generator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment