Gabriel Santos
Gabriel Santos

Reputation: 4974

Where to find Symfony2 clean skeleton?

I need a clean skeleton, without default demos and configs, to understand all the configuration process, begin from zero, and bundle creation for Symfony 2.

Thanks!

Upvotes: 8

Views: 4615

Answers (2)

Kasheen
Kasheen

Reputation: 5411

Download the Standard Edition with the Acme demo, inside that distribution is a file called README.md and at the bottom it has a section that describes how to remove the Acme stuff:

Using this Edition as the Base of your Application

Since the standard edition is fully-configured and comes with some examples, you'll need to make a few changes before using it to build your application.

The distribution is configured with the following defaults:

  • Twig is the only configured template engine;
  • Doctrine ORM/DBAL is configured;
  • Swiftmailer is configured;
  • Annotations for everything are enabled.

A default bundle, AcmeDemoBundle, shows you Symfony2 in action. After playing with it, you can remove it by following these steps:

  • delete the src/Acme directory;
  • remove the routing entries referencing AcmeBundle in app/config/routing_dev.yml;
  • remove the AcmeBundle from the registered bundles in app/AppKernel.php;

You can also remove web/bundles/acmedemo as well since that is just assets which are installed using php app/console assets:install web.

Upvotes: 15

Acyra
Acyra

Reputation: 16044

The demo files are just one bundle, and they actually help with understanding the configuration for Symfony2. They also are only initialized in the development front controller and are easy to remove by deleting the bundle from your app Kernel and configs.

The Symfony2 framework is very challenging to learn because there are many different ways you can accomplish a given task. Config files can be in different formats and in various locations.

Try using the Interactive Generator command line tool to create a bundle. Here's a really good overview: http://symfony.com/doc/2.0/book/page_creation.html

Good luck!

Upvotes: 1

Related Questions