Where to find symfony2 clean skeleton?

I need a clean skeleton, without demons and default configurations, to understand the whole setup process, start from scratch and create a package for Symfony 2.

Thanks!

+8
php symfony skeleton-code
source share
2 answers

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

Using this publication as the base of your application

Since the standard version is fully configured and comes with some examples, you need to make a few changes before using them to build your application.

The distribution is configured with the following default values:

  • Twig is the only template engine configured;
  • Configuring Doctrine ORM / DBAL;
  • Configured Swiftmailer
  • Annotations for all are included.

The default package, AcmeDemoBundle , shows the action of Symfony2. After playing with him, you can delete him by following these steps:

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

You can also remove web/bundles/acmedemo , as these are just assets that are installed using php app/console assets:install web .

+15
source share

Demo files are just one package and they really help understand the configuration for Symfony2. They are also initialized only in the front-end development controller and are easily removed by removing the package from your application. Kernel and configs.

The structure of Symfony2 is very difficult to learn because there are many different ways to accomplish this task. Configuration files can be in different formats and in different places.

Try using the Interactive Generator command-line tool to create a package. Here is a really good review: http://symfony.com/doc/2.0/book/page_creation.html

Good luck

+1
source share

All Articles