ServiceProvider

Implements \Cilex\ServiceProviderInterface

Converts all underscored class names into namespaces.

This plugin will enable a non-namespaced application to be interpreted as being namespaced for documentation purposes by separating the Classes by underscore and converting the prefix to a series of namespaces.

For example:

`My_Special_ClassName` will be transformed into the class `ClassName` with namespace `My\Special`.
author

david0 https://github.com/david0 this plugin was generously provided by @david0.

link

https://github.com/phpDocumentor/phpDocumentor2/pull/1135

package

Default

Methods

Construct plugin with a the relevant configuration

__construct(\phpDocumentor\Plugin\Plugin $plugin) 

Arguments

Attaches the filter responsible for the conversion to all structural elements.

addNamespaceFilter(\phpDocumentor\Descriptor\ProjectDescriptorBuilder $builder, \phpDocumentor\Descriptor\Filter\Filter $filterManager) : void

Registers services on the given app.

register(\Cilex\Application $app) 

Arguments

$app

\Cilex\Application

An Application instance.

Properties

plugin

plugin : \phpDocumentor\Plugin\Plugin