Reputation: 489
... must be an instance of Symfony/Component/Validator/ExecutionContext, instance of Symfony/Component/Validator/Context/LegacyExecutionContext given ...
Upvotes: 1
Views: 645
Reputation: 8189
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.
Upvotes: 3