diff --git a/src/Symfony/Component/Validator/Context/ExecutionContext.php b/src/Symfony/Component/Validator/Context/ExecutionContext.php index 4096a345bd..3bd423fb65 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContext.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContext.php @@ -18,7 +18,6 @@ use Symfony\Component\Validator\ConstraintViolationList; use Symfony\Component\Validator\Exception\BadMethodCallException; use Symfony\Component\Validator\Mapping\MetadataInterface; use Symfony\Component\Validator\Mapping\PropertyMetadataInterface; -use Symfony\Component\Validator\ObjectInitializerInterface; use Symfony\Component\Validator\Util\PropertyPath; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Validator\Violation\ConstraintViolationBuilder; @@ -370,14 +369,7 @@ class ExecutionContext implements ExecutionContextInterface } /** - * Marks that an object was initialized. - * - * @param string $cacheKey The hash of the object - * - * @internal Used by the validator engine. Should not be called by user - * code. - * - * @see ObjectInitializerInterface + * {@inheritdoc} */ public function markObjectAsInitialized($cacheKey) { @@ -385,16 +377,7 @@ class ExecutionContext implements ExecutionContextInterface } /** - * Returns whether an object was initialized. - * - * @param string $cacheKey The hash of the object - * - * @return bool Whether the object was already initialized - * - * @internal Used by the validator engine. Should not be called by user - * code. - * - * @see ObjectInitializerInterface + * {@inheritdoc} */ public function isObjectInitialized($cacheKey) { diff --git a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php index d91c5304fb..d2527f4694 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php @@ -186,4 +186,30 @@ interface ExecutionContextInterface extends LegacyExecutionContextInterface * code. */ public function isConstraintValidated($cacheKey, $constraintHash); + + /** + * Marks that an object was initialized. + * + * @param string $cacheKey The hash of the object + * + * @internal Used by the validator engine. Should not be called by user + * code. + * + * @see ObjectInitializerInterface + */ + public function markObjectAsInitialized($cacheKey); + + /** + * Returns whether an object was initialized. + * + * @param string $cacheKey The hash of the object + * + * @return bool Whether the object was already initialized + * + * @internal Used by the validator engine. Should not be called by user + * code. + * + * @see ObjectInitializerInterface + */ + public function isObjectInitialized($cacheKey); }