The Naked Bundle
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 I 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, at the end 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 thin bundle, surrounded by a few highly reusable, maximally decoupled libraries.
.@matthiasnoback talking about the naked bundles at #symfony_live pic.twitter.com/Ny5yE4kHJ0
— Marek (@super_marek) September 26, 2014
- 10/24/2014 Symfony Barcelona website slides
- 10/13/2014 Symfony Usergroup Belgium website feedback slides
- 9/26/2014 SymfonyLive, London feedback slides video
- 9/17/2014 e-Active, Zwolle (NL), try-out slides
- 6/26/2014 As a tutorial: Dutch PHP Conference feedback slides