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
Interfaces, Classes, Traits and Enums
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $formDebugCommandService : mixed
- $formExtensionService : mixed
- $formTypeExtensionTag : mixed
- $formTypeGuesserTag : mixed
- $formTypeTag : 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.
- processFormTypeExtensions() : array<string|int, mixed>
- processFormTypeGuessers() : ArgumentInterface
- processFormTypes() : Reference
Properties
$formDebugCommandService
private
mixed
$formDebugCommandService
$formExtensionService
private
mixed
$formExtensionService
$formTypeExtensionTag
private
mixed
$formTypeExtensionTag
$formTypeGuesserTag
private
mixed
$formTypeGuesserTag
$formTypeTag
private
mixed
$formTypeTag
Methods
__construct()
public
__construct([string $formExtensionService = 'form.extension' ][, string $formTypeTag = 'form.type' ][, string $formTypeExtensionTag = 'form.type_extension' ][, string $formTypeGuesserTag = 'form.type_guesser' ][, string $formDebugCommandService = 'console.command.form_debug' ]) : mixed
Parameters
- $formExtensionService : string = 'form.extension'
- $formTypeTag : string = 'form.type'
- $formTypeExtensionTag : string = 'form.type_extension'
- $formTypeGuesserTag : string = 'form.type_guesser'
- $formDebugCommandService : string = 'console.command.form_debug'
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
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
ArgumentInterface —processFormTypes()
private
processFormTypes(ContainerBuilder $container) : Reference
Parameters
- $container : ContainerBuilder