Symfony\Component\Validator\ExecutionContext::__construct
Creates a new execution context.
Signature
public function __construct(GlobalExecutionContextInterface
$globalContext,
[TranslatorInterface
$translator = null,
[MetadataInterface
$translationDomain = null,
[MetadataInterface
$metadata = null,
[mixed
$value = null,
[string
$group = null,
[string
$propertyPath = '']]]]]] )
Parameters
$globalContext
— Symfony\Component\Validator\GlobalExecutionContextInterface- The global context storing node-independent state.
$translator
— Symfony\Component\Translation\TranslatorInterface- The translator for translating violation messages.
$translationDomain
— object- The domain of the validation messages.
$metadata
— Symfony\Component\Validator\MetadataInterface- The metadata of the validated node.
$value
— mixed- The value of the validated node.
$group
— string- The current validation group.
$propertyPath
— string- The property path to the current node.