2013年10月30日星期三

Matthias Noback: Symfony2: Some things I don't like about Bundles


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.


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

没有评论:

发表评论