createInstance()
initialize()
registerAutoloader()
registerPlugins()
attachDispatcher()
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 |
createInstance() : \phpDocumentor_Bootstrap
Usually used to do a one-line initialization, such as: phpDocumentor_Bootstrap::createInstance()->initialize();
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.
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.
registerPlugins(\ZendX_Loader_StandardAutoloader $autoloader) : void
\ZendX_Loader_StandardAutoloaderthe autoloader upon which will the plugins will bind their class prefixes and folders.
attachDispatcher(\sfEventDispatcher $event_dispatcher) : void