\phpDocumentor\DescriptorServiceProvider

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

Summary

Methods
Properties
Constants
register()
attachAssemblersToFactory()
attachFiltersToManager()
attachValidators()
No public properties found
No constants found
addCache()
addBuilder()
addAssemblers()
addFilters()
addValidators()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register(\Cilex\Application  $app) : void

Adds the services needed to build the descriptors.

Parameters

\Cilex\Application $app

An Application instance

attachValidators()

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

Adds validators to check the Descriptors.

Parameters

\Symfony\Component\Validator\Validator $validator

Returns

\Symfony\Component\Validator\Validator

addCache()

addCache(\Cilex\Application  $app) : void

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

Parameters

\Cilex\Application $app

addBuilder()

addBuilder(\Cilex\Application  $app) : void

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

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

Parameters

\Cilex\Application $app

addAssemblers()

addAssemblers(\Cilex\Application  $app) : void

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

Parameters

\Cilex\Application $app

addFilters()

addFilters(\Cilex\Application  $app) : void

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

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'.

Parameters

\Cilex\Application $app

addValidators()

addValidators(\Cilex\Application  $app) : void

Adds validators for the descriptors to the validator manager.

Parameters

\Cilex\Application $app

Throws

\phpDocumentor\Descriptor\Exception\MissingDependencyException

if the validator could not be found.