PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Introducing the ZF2 Plugin Broker

Note: This article was originally published at phly, boy, phly on 10 November 2010.

In Zend Framework 2.0, we're refactoring in a number of areas in order to increase the consistency of the framework. One area we identified early is how plugins are loaded.

The word "plugins" in Zend Framework applies to a number of items:

  • Helpers (view helpers, action helpers)
  • Application resources
  • Filters and validators (particularly when applied to Zend_Filter_Input and Zend_Form)
  • Adapters

In practically every case, we use a "short name" to name the plugin, in order to allow loading it dynamically. This allows more concise code, as well as the ability to configure the code in order to allow specifying alternate implementations.


Continue reading "Introducing the ZF2 Plugin Broker"