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


Zend_Application_Bootstrap_ResourceBootstrapper is an interface to use when a bootstrap class will be loading external resources -- i.e., one or more resources will not be defined directly in the class, but rather via plugins. It should be used in conjunction with Zend_Application_Bootstrap_Bootstrapper; Zend_Application_Bootstrap_BootstrapAbstract implements this functionality.

The following methods make up the definition of the interface.

Table 5. Zend_Application_Bootstrap_ResourceBootstrapper Interface

Method Return Value Parameters Description
registerPluginResource($resource, $options = null) Zend_Application_Bootstrap_ResourceBootstrapper
  • $resource: required. A resource name or Zend_Application_Resource_Resource object.

  • $options: optional. An array or Zend_Config object to pass to the resource on instantiation.

Register a resource with the class, providing optional configuration to pass to the resource.

unregisterPluginResource($resource) Zend_Application_Bootstrap_ResourceBootstrapper
  • $resource: required. Name of a resource to unregister from the class.

Remove a plugin resource from the class.

hasPluginResource($resource) Boolean
  • $resource: required. Name of the resource.

Determine if a specific resource has been registered with the class.

getPluginResource($resource) Zend_Application_Resource_Resource
  • $resource: required. Name of a resource to retrieve (string).

Retrieve a plugin resource instance by name.

getPluginResourceNames() Array N/A

Retrieve a list of all registered plugin resource names.

setPluginLoader(Zend_Loader_PluginLoader_Interface $loader) Zend_Application_Bootstrap_ResourceBootstrapper
  • $loader: required. Plugin loader instance to use when resolving plugin names to classes.

Register a plugin loader instance to use when resolving plugin class names.

getPluginLoader() Zend_Loader_PluginLoader_Interface N/A

Retrieve the registered plugin loader.

Zend Framework