You are here

interface ExecutionContextFactoryInterface in Plug 7

Creates instances of {@link ExecutionContextInterface}.

You can use a custom factory if you want to customize the execution context that is passed through the validation run.

@since 2.5 @author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of ExecutionContextFactoryInterface

All classes that implement ExecutionContextFactoryInterface

1 file declares its use of ExecutionContextFactoryInterface
RecursiveValidator.php in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveValidator.php

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php, line 25

Namespace

Symfony\Component\Validator\Context
View source
interface ExecutionContextFactoryInterface {

  /**
   * Creates a new execution context.
   *
   * @param ValidatorInterface $validator The validator
   * @param mixed              $root      The root value of the validated
   *                                      object graph
   *
   * @return ExecutionContextInterface The new execution context
   */
  public function createContext(ValidatorInterface $validator, $root);

}

Members

Namesort descending Modifiers Type Description Overrides
ExecutionContextFactoryInterface::createContext public function Creates a new execution context. 2