FormPass
in package
implements
CompilerPassInterface
Uses
PriorityTaggedServiceTrait
Adds all services with the tags "form.type", "form.type_extension" and "form.type_guesser" as arguments of the "form.extension" service.
Tags
Table of Contents
Interfaces
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Methods
- 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.
- processFormTypeExtensions() : array<string|int, mixed>
- processFormTypeGuessers() : ArgumentInterface
- processFormTypes() : Reference
Methods
process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
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
Tags
Return values
array<string|int, Reference>processFormTypeExtensions()
private
processFormTypeExtensions(ContainerBuilder $container) : array<string|int, mixed>
Parameters
- $container : ContainerBuilder
Return values
array<string|int, mixed>processFormTypeGuessers()
private
processFormTypeGuessers(ContainerBuilder $container) : ArgumentInterface
Parameters
- $container : ContainerBuilder
Return values
ArgumentInterfaceprocessFormTypes()
private
processFormTypes(ContainerBuilder $container) : Reference
Parameters
- $container : ContainerBuilder