PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Providers

Zend_Tool_Framework_Provider represents the functional or "capability" aspect of the framework. Fundamentally, Zend_Tool_Framework_Provider will provide the interfaces necessary to produce "providers", or bits of tooling functionality that can be called and used inside the Zend_Tool_Framework toolchain. The simplistic nature of implementing this provider interface allows the developer a "one-stop-shop" of adding functionality or capabilities to Zend_Tool_Framework.

The provider interface is an empty interface and enforces no methods (this is the Marker Interface pattern):

<?php
interface Zend_Tool_Framework_Provider_Interface
{}

Or, if you wish, you can implement the base (or abstract) Provider which will give you access to the Zend_Tool_Framework_Registry:

<?php
abstract class Zend_Tool_Framework_Provider_Abstract
    
implements Zend_Tool_Framework_Provider_Interface,
               
Zend_Tool_Registry_EnabledInterface
{
    protected 
$_registry;
    public function 
setRegistry(
        
Zend_Tool_Framework_Registry_Interface $registry
    
);
}

Zend Framework