Question

Is it possible to disable core bundles of Symfony 2, such as the Monolog logger?

I am working on an application which doesn't have many fancy requirements except that it should be ultra fast and as much lightweight as possible. I guess Symfony 2 is not the best framework to go with in my situation, but for me it uses the best principles there are, it is a pleasure to work with and also there are many bundles I might take advantage of later on.

So, my question is as in the title, is it possible to completely disable logging (in the production environment at least), and if it is, would it be possible to disable other such features as well?

P.S.: I understand that the easiest and cleanest way to disable a bundle is to remove it from the kernel, but what happens with the code which uses it?

Était-ce utile?

La solution

Actually, Symfony2 is perfect for what you want. As it is a decoupled framework, you can just include the features you want. You can disable monolog from config files.

Also, there is Silex, a micro-framework built with Symfony components, designed to be lightweight and fast for relatively small jobs.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top