1

... must be an instance of Symfony/Component/Validator/ExecutionContext, instance of Symfony/Component/Validator/Context/LegacyExecutionContext given ...

MediaVince
  • 479
  • 1
  • 8
  • 13

1 Answers1

3

From the source, you can see it is deprecated since V2.5. You will indeed have to use ExecutionContext :

https://github.com/symfony/Validator/blob/2.5/Context/LegacyExecutionContext.php#L25

@deprecated Implemented for backwards compatibility with Symfony < 2.5. To be removed in Symfony 3.0.

Brewal
  • 8,067
  • 2
  • 24
  • 37