PropertyInfoPass
in package
implements
CompilerPassInterface
Uses
PriorityTaggedServiceTrait
Adds extractors to the property_info service.
Tags
Interfaces, Classes, Traits and Enums
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $accessExtractorTag : mixed
- $descriptionExtractorTag : mixed
- $initializableExtractorTag : mixed
- $listExtractorTag : mixed
- $propertyInfoService : mixed
- $typeExtractorTag : mixed
- __construct() : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- findAndSortTaggedServices() : array<string|int, Reference>
- Finds all services with the given tag name and order them by their priority.
Properties
$accessExtractorTag
private
mixed
$accessExtractorTag
$descriptionExtractorTag
private
mixed
$descriptionExtractorTag
$initializableExtractorTag
private
mixed
$initializableExtractorTag
$listExtractorTag
private
mixed
$listExtractorTag
$propertyInfoService
private
mixed
$propertyInfoService
$typeExtractorTag
private
mixed
$typeExtractorTag
Methods
__construct()
public
__construct([string $propertyInfoService = 'property_info' ][, string $listExtractorTag = 'property_info.list_extractor' ][, string $typeExtractorTag = 'property_info.type_extractor' ][, string $descriptionExtractorTag = 'property_info.description_extractor' ][, string $accessExtractorTag = 'property_info.access_extractor' ][, string $initializableExtractorTag = 'property_info.initializable_extractor' ]) : mixed
Parameters
- $propertyInfoService : string = 'property_info'
- $listExtractorTag : string = 'property_info.list_extractor'
- $typeExtractorTag : string = 'property_info.type_extractor'
- $descriptionExtractorTag : string = 'property_info.description_extractor'
- $accessExtractorTag : string = 'property_info.access_extractor'
- $initializableExtractorTag : string = 'property_info.initializable_extractor'
Return values
mixed —process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —findAndSortTaggedServices()
Finds all services with the given tag name and order them by their priority.
private
findAndSortTaggedServices(string|TaggedIteratorArgument $tagName, ContainerBuilder $container) : array<string|int, Reference>
The order of additions must be respected for services having the same priority, and knowing that the \SplPriorityQueue class does not respect the FIFO method, we should not use that class.
Parameters
- $tagName : string|TaggedIteratorArgument
- $container : ContainerBuilder