AddAutoMappingConfigurationPass
in package
implements
CompilerPassInterface
Injects the automapping configuration as last argument of loaders tagged with the "validator.auto_mapper" tag.
Tags
Interfaces, Classes, Traits and Enums
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $tag : mixed
- $validatorBuilderService : mixed
- __construct() : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- getRegexp() : string|null
- Builds a regexp to check if a class is auto-mapped.
Properties
$tag
private
mixed
$tag
$validatorBuilderService
private
mixed
$validatorBuilderService
Methods
__construct()
public
__construct([string $validatorBuilderService = 'validator.builder' ][, string $tag = 'validator.auto_mapper' ]) : mixed
Parameters
- $validatorBuilderService : string = 'validator.builder'
- $tag : string = 'validator.auto_mapper'
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 —getRegexp()
Builds a regexp to check if a class is auto-mapped.
private
getRegexp(array<string|int, mixed> $patterns) : string|null
Parameters
- $patterns : array<string|int, mixed>