I just started my new projects in symfony 2 and I'm wondering more than 6000 files in the Symfony directory.
- is it ok?
- is it possible to decrease number of files?
I just started my new projects in symfony 2 and I'm wondering more than 6000 files in the Symfony directory.
You said you want to do this because you use SVN. Please take a look at this doc article: "How to Create and Store a Symfony2 Project in Subversion". It is a really bad practise to include the files in the vendor namespace in your repository.
Besides that, there is nothing you can do to reduce the amount of files from the core framework. However, you can remove some 3th party bundles/libraries from the Symfony Standard Edition. For instance, if you don't work with Assetic, just remove that bundle and library. The bundles of JMS that are included can be really helpful, but if you don't use them: Just remove them from your composer.json
file.
Having more than 6000 files doesnt really mean that all those code will be executed when you run the application. Most of the files will be in your vendor folder where the third party libraries are placed. It could contain documentation files , tests etc .. which might not be important in production . If you want you can get rid of them but there is no point in doing that. Disc is cheap now a days