As an example, if a developer wants to add the capability of showing
the version of a datafile that his 3rd party component is working
from, there is only one class the developer would need to implement.
Assuming the component is called
My_Component, he would
create a class named
My_Component_HelloProvider in a
HelloProvider.php somewhere on the
include_path. This class would implement
Zend_Tool_Framework_Provider_Interface, and the body of
this file would only have to look like the following:
public function say()
echo 'Hello from my provider!';
Given that code above, and assuming the developer wishes to access this functionality through the console client, the call would look like this:
% zf say hello Hello from my provider!