Skip to content

Commit f9b1122

Browse files
author
Éric
committed
fixup! Callback Validation Constraint: Remove reference to deprecated option
1 parent ec3ee5e commit f9b1122

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/constraints/Callback.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ constructor of the Callback constraint::
255255
// src/AppBundle/Entity/Author.php
256256
namespace AppBundle\Entity;
257257

258+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
259+
// if you're using the older 2.4 validation API, you'll need this instead
260+
// use Symfony\Component\Validator\ExecutionContextInterface;
261+
258262
use Symfony\Component\Validator\Mapping\ClassMetadata;
259263
use Symfony\Component\Validator\Constraints as Assert;
260264

0 commit comments

Comments
 (0)