Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reference/constraints/Callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Configuration
namespace Acme\BlogBundle\Entity;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\ExecutionContextInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;

class Author
{
Expand Down Expand Up @@ -100,7 +100,7 @@ can set "violations" directly on this object and determine to which field
those errors should be attributed::

// ...
use Symfony\Component\Validator\ExecutionContextInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;

class Author
{
Expand Down Expand Up @@ -156,7 +156,7 @@ your validation function is ``Vendor\Package\Validator::validate()``::

namespace Vendor\Package;

use Symfony\Component\Validator\ExecutionContextInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;

class Validator
{
Expand Down Expand Up @@ -274,7 +274,7 @@ callback method:

* A closure.

Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\ExecutionContextInterface`
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
instance as only argument.

Static or closure callbacks receive the validated object as the first argument
Expand Down