News Feed
Jobs Feed
Sections




News Archive
Matthew Weier O'Phinney's Blog:
Introducing the ZF2 Plugin Broker
November 12, 2010 @ 10:03:02

Matthew Weier O'Phinney has a new post to his blog today looking at a feature that'll be included in the upcoming Zend Framework 2 release - a plugin broker that changes the way plugins are loaded.

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, Application resources, Filters and validators and 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.

The current versions of the framework use a "PluginLoader" class that handles the resolving and loading of the plugins as they're called. With this new PluginBroker, the process is optimized and split out into some namespaces for ease of use. He gets into more detail about the class resolution, instantiation, registration and touches briefly on the PluginSpecBroker, a special-case handler that's a concrete example of the LazyLoadingBroker.

0 comments voice your opinion now!
zendframework pluginbroker plugin zendframework2 broker


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Pastebin app updates

Alex Netkachov's Blog: Zend, Prado, ASP.NET. Which framework is the best?

NetBeans Blog: Selenium plugin for PHP

Jason Fox: Use the Accept Header to Set Your Return Data With Zend Framework 2

Xebee Blog: Test Driven Development with Zend Framework and PHPUnit


Community Events











Don't see your event here?
Let us know!


opinion framework database release series podcast symfony2 phpunit interview rest community zendframework2 language unittest development usergroup introduction conference testing functional

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework