The Naked Bundle (English)
The Bundle system is one of the greatest and most powerful features of Symfony2. Bundles contain all the files related to a single feature of your application: controllers, entities, event listeners, form types, Twig templates, etc. But how much of that actually needs to be inside a bundle?
In this talk we’ll take a bundle, containing all those different types of classes, configuration files and templates, and strip it down to the bare necessities. And I promise that after moving many files out of the bundle, everything still works.
While looking for ways to move things out of the bundle, I will discuss some of the more advanced features of bundle design, like prepending configuration, compiler passes and Doctrine mapping drivers. We will end with a very lean bundle, surrounded by a few highly reusable, maximally decoupled libraries.
Matthias Noback started his professional career 12 years ago as a freelance web developer. After working as a PHP developer for various companies, he decided to try something else; though programming will always be his passion, he has now taken this further and is also teaching, writing and consulting. He is the author of "A Year With Symfony" and regularly posts on his blog "PHP & Symfony"