ServiceProvider

Implements \Cilex\ServiceProviderInterface

This provider is responsible for registering the Descriptor component with the given Application.

package

Default

Methods

Adds the assembler factory and attaches the basic assemblers with key 'descriptor.builder.assembler.factory'.

addAssemblers(\Cilex\Application $app) : void

Arguments

$app

\Cilex\Application

Adds the Building mechanism using the key 'descriptor.builder'.

addBuilder(\Cilex\Application $app) : void

Please note that the type of serializer can be configured using the parameter 'descriptor.builder.serializer'; it accepts any parameter that Zend\Serializer supports.

Arguments

$app

\Cilex\Application

Adds the caching mechanism to the dependency injection container with key 'descriptor.cache'.

addCache(\Cilex\Application $app) : void

Arguments

$app

\Cilex\Application

Adds the descriptor filtering mechanism and using key 'descriptor.filter'.

addFilters(\Cilex\Application $app) : void

Please note that filters can only be attached after the builder is instantiated because it is needed; so the filters can be attached by extending 'descriptor.builder'.

Arguments

$app

\Cilex\Application

Adds validators for the descriptors to the validator manager.

addValidators(\Cilex\Application $app) : void
Throws
\phpDocumentor\Descriptor\Exception\MissingDependencyException

if the validator could not be found.

Arguments

$app

\Cilex\Application

Registers the Assemblers used to convert Reflection objects to Descriptors.

attachAssemblersToFactory(\phpDocumentor\Descriptor\Builder\AssemblerFactory $factory, \Cilex\Application $app) : \phpDocumentor\Descriptor\Builder\AssemblerFactory

Attaches filters to the manager.

attachFiltersToManager(\phpDocumentor\Descriptor\Filter\Filter $filterManager, \Cilex\Application $app) : \phpDocumentor\Descriptor\Filter\Filter

Arguments

$app

\Cilex\Application

Response

\phpDocumentor\Descriptor\Filter\Filter

Adds validators to check the Descriptors.

attachValidators(\Symfony\Component\Validator\Validator $validator) : \Symfony\Component\Validator\Validator

Arguments

$validator

\Symfony\Component\Validator\Validator

Response

\Symfony\Component\Validator\Validator

Adds the services needed to build the descriptors.

register(\Cilex\Application $app) : void

Arguments

$app

\Cilex\Application

An Application instance