W3cubDocs

/Symfony 4.1

FormPass

class FormPass implements CompilerPassInterface

Adds all services with the tags "form.type", "form.type_extension" and "form.type_guesser" as arguments of the "form.extension" service.

Traits

PriorityTaggedServiceTrait Trait that allows a generic method to find and sort service by priority option in the tag.

Methods

__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')
process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Details

__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')

Parameters

string $formExtensionService
string $formTypeTag
string $formTypeExtensionTag
string $formTypeGuesserTag
string $formDebugCommandService

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/DependencyInjection/FormPass.html