Submit
Path:
~
/
/
opt
/
cloudlinux
/
alt-php55
/
root
/
usr
/
share
/
pear
/
Symfony
/
Component
/
Validator
/
File Content:
ValidatorBuilderInterface.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\PropertyAccess\PropertyAccessorInterface; use Symfony\Component\Validator\Mapping\Cache\CacheInterface; use Symfony\Component\Translation\TranslatorInterface; use Doctrine\Common\Annotations\Reader; /** * A configurable builder for ValidatorInterface objects. * * @author Bernhard Schussek <bschussek@gmail.com> */ interface ValidatorBuilderInterface { /** * Adds an object initializer to the validator. * * @param ObjectInitializerInterface $initializer The initializer. * * @return ValidatorBuilderInterface The builder object. */ public function addObjectInitializer(ObjectInitializerInterface $initializer); /** * Adds a list of object initializers to the validator. * * @param array $initializers The initializer. * * @return ValidatorBuilderInterface The builder object. */ public function addObjectInitializers(array $initializers); /** * Adds an XML constraint mapping file to the validator. * * @param string $path The path to the mapping file. * * @return ValidatorBuilderInterface The builder object. */ public function addXmlMapping($path); /** * Adds a list of XML constraint mapping files to the validator. * * @param array $paths The paths to the mapping files. * * @return ValidatorBuilderInterface The builder object. */ public function addXmlMappings(array $paths); /** * Adds a YAML constraint mapping file to the validator. * * @param string $path The path to the mapping file. * * @return ValidatorBuilderInterface The builder object. */ public function addYamlMapping($path); /** * Adds a list of YAML constraint mappings file to the validator. * * @param array $paths The paths to the mapping files. * * @return ValidatorBuilderInterface The builder object. */ public function addYamlMappings(array $paths); /** * Enables constraint mapping using the given static method. * * @param string $methodName The name of the method. * * @return ValidatorBuilderInterface The builder object. */ public function addMethodMapping($methodName); /** * Enables constraint mapping using the given static methods. * * @param array $methodNames The names of the methods. * * @return ValidatorBuilderInterface The builder object. */ public function addMethodMappings(array $methodNames); /** * Enables annotation based constraint mapping. * * @param Reader $annotationReader The annotation reader to be used. * * @return ValidatorBuilderInterface The builder object. */ public function enableAnnotationMapping(Reader $annotationReader = null); /** * Disables annotation based constraint mapping. * * @return ValidatorBuilderInterface The builder object. */ public function disableAnnotationMapping(); /** * Sets the class metadata factory used by the validator. * * @param MetadataFactoryInterface $metadataFactory The metadata factory. * * @return ValidatorBuilderInterface The builder object. */ public function setMetadataFactory(MetadataFactoryInterface $metadataFactory); /** * Sets the cache for caching class metadata. * * @param CacheInterface $cache The cache instance. * * @return ValidatorBuilderInterface The builder object. */ public function setMetadataCache(CacheInterface $cache); /** * Sets the constraint validator factory used by the validator. * * @param ConstraintValidatorFactoryInterface $validatorFactory The validator factory. * * @return ValidatorBuilderInterface The builder object. */ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory); /** * Sets the translator used for translating violation messages. * * @param TranslatorInterface $translator The translator instance. * * @return ValidatorBuilderInterface The builder object. */ public function setTranslator(TranslatorInterface $translator); /** * Sets the default translation domain of violation messages. * * The same message can have different translations in different domains. * Pass the domain that is used for violation messages by default to this * method. * * @param string $translationDomain The translation domain of the violation messages. * * @return ValidatorBuilderInterface The builder object. */ public function setTranslationDomain($translationDomain); /** * Sets the property accessor for resolving property paths. * * @param PropertyAccessorInterface $propertyAccessor The property accessor. * * @return ValidatorBuilderInterface The builder object. */ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor); /** * Builds and returns a new validator object. * * @return ValidatorInterface The built validator. */ public function getValidator(); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
Constraints
---
0755
Exception
---
0755
Mapping
---
0755
Resources
---
0755
ClassBasedInterface.php
572 bytes
0644
Constraint.php
6797 bytes
0644
ConstraintValidator.php
700 bytes
0644
ConstraintValidatorFactory.php
2297 bytes
0644
ConstraintValidatorFactoryInterface.php
775 bytes
0644
ConstraintValidatorInterface.php
899 bytes
0644
ConstraintViolation.php
4334 bytes
0644
ConstraintViolationInterface.php
4353 bytes
0644
ConstraintViolationList.php
3245 bytes
0644
ConstraintViolationListInterface.php
2008 bytes
0644
DefaultTranslator.php
5245 bytes
0644
ExecutionContext.php
8495 bytes
0644
ExecutionContextInterface.php
12355 bytes
0644
GlobalExecutionContextInterface.php
1937 bytes
0644
GroupSequenceProviderInterface.php
597 bytes
0644
MetadataFactoryInterface.php
990 bytes
0644
MetadataInterface.php
2891 bytes
0644
ObjectInitializerInterface.php
817 bytes
0644
PropertyMetadataContainerInterface.php
1209 bytes
0644
PropertyMetadataInterface.php
1258 bytes
0644
Validation.php
1098 bytes
0644
ValidationVisitor.php
6322 bytes
0644
ValidationVisitorInterface.php
3548 bytes
0644
Validator.php
6681 bytes
0644
ValidatorBuilder.php
10082 bytes
0644
ValidatorBuilderInterface.php
5499 bytes
0644
ValidatorInterface.php
3580 bytes
0644
autoloader.php
339 bytes
0644
N4ST4R_ID | Naxtarrr