elcodi / bamboo

Meet Bamboo, an e-commerce project built on top of Elcodi and Symfony. Give us a star to support our project :)
http://bamboo.elcodi.com
MIT License
198 stars 44 forks source link

Twig extensions are loaded everytime the Kernel boots #658

Closed mmoreram closed 8 years ago

mmoreram commented 8 years ago

Even if they are not used, they are instanced. This has no sense, so some of them use database and a lot of services. This is new, so starts being break since Symfony 2.8.

[We have this problem because we're using some database queries even when the database is not created at all]

Solutions should be adding them all as lazy services (bad idea, in fact, we should not change the service definition because of design of container), but even with that, nothing changes :(

Ideas?

mmoreram commented 8 years ago

Seems to be fixed in new Symfony 2.8 version.