Skip to content

Commit f4380ed

Browse files
lashaeweaverryan
authored andcommitted
Update Callback.rst
"Symfony\Component\Validator\ExecutionContextInterface" namespace is deprecated, new namespace should be "Symfony\Component\Validator\Context\ExecutionContextInterface"
1 parent 042dcf9 commit f4380ed

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
{
@@ -152,7 +152,7 @@ your validation function is ``Vendor\Package\Validator::validate()``::
152152

153153
namespace Vendor\Package;
154154

155-
use Symfony\Component\Validator\ExecutionContextInterface;
155+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
156156

157157
class Validator
158158
{
@@ -270,7 +270,7 @@ callback method:
270270

271271
* A closure.
272272

273-
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\ExecutionContextInterface`
273+
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
274274
instance as only argument.
275275

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

0 commit comments

Comments
 (0)