This class provides a bootstrap for all application who wish to interface with phpDocumentor.

The Boostrapper is responsible for setting up the phpDocumentor autoloader, setting up the event dispatcher and initializing the plugins.

category phpDocumentor
package Core
author Mike van Riel
license MIT
link http://phpdoc.org

 Methods

Helper static function to get an instance of this class.

createInstance() : \phpDocumentor_Bootstrap

Usually used to do a one-line initialization, such as: phpDocumentor_Bootstrap::createInstance()->initialize();

Returns

Convenience method that does the complete initialization for phpDocumentor.

initialize() : void

This method will register the autoloader, event dispatcher and plugins. The methods called can also be implemented separately, for example when you want to use your own autoloader.

Registers and returns the autoloader for phpDocumentor.

registerAutoloader() : \Composer\Autoload\ClassLoader

phpDocumentor uses the ZF2 autoloader to register the common paths and start a PSR-0 fallback. The autoloader is also used by the plugin system to make sure that everything in a plugin can be autoloaded.

Returns

Registers the Event Dispatcher and registers all plugins.

registerPlugins(\ZendX_Loader_StandardAutoloader $autoloader) : void

Parameters

$autoloader

\ZendX_Loader_StandardAutoloader

the autoloader upon which will the plugins will bind their class prefixes and folders.

attaches the event dispatcher to all components.

attachDispatcher(\sfEventDispatcher $event_dispatcher) : void

Parameters

$event_dispatcher

\sfEventDispatcher

The event dispatcher to attach.