Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting not needed bundles from Symfony 2?

Tags:

symfony

bundle

Is possible to delete bundles not needed in order to keep the project clean? I'm using Symfony2 with propel to build a RESTful interface. Don't need:

  • Twig
  • Doctrine2 (i prefer Propel instead)
  • Assetic (without Twig assetic does not make sense, correct me if i'm wrong)
  • Security (no need to model roles)

I can't find any how-to in order to remove uneeded bundles. Any help is much appreciated.

EDIT: monlog is the logger, not mongodb. Need it!

About deps.lock file: it can be removed after removing bundles, than issue:

php bin/vendors update

and i should be recreated. It maintains the git version id checked out, for each bundle.

like image 320
gremo Avatar asked Feb 25 '12 19:02

gremo


People also ask

What are Symfony bundles?

A Symfony bundle is a collection of files and folders organized in a specific structure. The bundles are modeled in such a way that it can be reused in multiple applications. The main application itself is packaged as a bundle and it is generally called AppBundle.


1 Answers

Sure. Remove them from AppKernel then delete from the file system if you want. You could even edit the deps file to keep them from coming back. Twig and Assetic are independent. You could use the Assetic bundle with straight PHP.

like image 136
Cerad Avatar answered Sep 25 '22 03:09

Cerad