Skip to content

Commit 9625778

Browse files
committed
Merge branch 'patch-1' of github.com:lashae/symfony-docs into validation-api-changes
* 'patch-1' of github.com:lashae/symfony-docs: Update Callback.rst
2 parents 3dc14c1 + 78dea71 commit 9625778

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

156156
namespace Vendor\Package;
157157

158-
use Symfony\Component\Validator\ExecutionContextInterface;
158+
use Symfony\Component\Validator\Context\ExecutionContextInterface;
159159

160160
class Validator
161161
{
@@ -273,7 +273,7 @@ callback method:
273273

274274
* A closure.
275275

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

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

0 commit comments

Comments
 (0)