Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthias Noback:
Symfony2: Some things I don't like about Bundles
Oct 30, 2013 @ 09:45:42

Matthias Noback has shared a few things he doesn't like about Symfony bundles, the drop-in components that easy extend Symfony-based applications.

This article could have been titled “Ten things I hate about bundles”, but that would be too harsh. The things I am going to describe, are not things I hate, but things I don’t like. Besides, when I count them, I don’t come to ten things...

Instead of ten, there's five things on his list of "hates" about bundles and their handling:

  • Bundle extension discovery
  • Naming conventions
  • Registering service container extensions yourself
  • Naming conventions, part two
  • Duplicate knowledge: the extension alias

For each section there's an explanation and sample code where needed to illustrate the point.

tagged: #dislike #symfony #bundles #top5 #opinion

Link: http://php-and-symfony.matthiasnoback.nl/2013/10/symfony2-some-things-i-dont-like-about-bundles/