Skip to content

Commit 78dea71

Browse files
committed
Update Callback.rst
"Symfony\Component\Validator\ExecutionContextInterface" namespace is deprecated, new namespace should be "Symfony\Component\Validator\Context\ExecutionContextInterface"
1 parent e7a17ff commit 78dea71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/Callback.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Configuration
5050
namespace Acme\BlogBundle\Entity;
5151
5252
use Symfony\Component\Validator\Constraints as Assert;
53-
use Symfony\Component\Validator\ExecutionContextInterface;
53+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
5454
5555
class Author
5656
{
@@ -100,7 +100,7 @@ can set "violations" directly on this object and determine to which field
100100
those errors should be attributed::
101101

102102
// ...
103-
use Symfony\Component\Validator\ExecutionContextInterface;
103+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
104104

105105
class Author
106106
{
@@ -156,7 +156,7 @@ your validation function is ``Vendor\Package\Validator::validate()``::
156156

157157
namespace Vendor\Package;
158158

159-
use Symfony\Component\Validator\ExecutionContextInterface;
159+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
160160

161161
class Validator
162162
{
@@ -274,7 +274,7 @@ callback method:
274274

275275
* A closure.
276276

277-
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\ExecutionContextInterface`
277+
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
278278
instance as only argument.
279279

280280
Static or closure callbacks receive the validated object as the first argument

0 commit comments

Comments
 (0)