... 必须是 Symfony/Component/Validator/ExecutionContext 的实例,给定 Symfony/Component/Validator/Context/LegacyExecutionContext 的实例...
问问题
593 次
1 回答
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.
于 2014-10-14T08:18:40.077 回答